gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/model stats.py
Date Sat, 13 Mar 2004 02:39:21 GMT
ajack       2004/03/12 18:39:21

  Modified:    python/gump/model stats.py
  Log:
  Fix the 'start date' for a state, to when the state changes, not each update.
  
  Revision  Changes    Path
  1.14      +6 -6      gump/python/gump/model/stats.py
  
  Index: stats.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/model/stats.py,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- stats.py	13 Mar 2004 00:17:39 -0000	1.13
  +++ stats.py	13 Mar 2004 02:39:21 -0000	1.14
  @@ -166,11 +166,11 @@
           self.currentState=statable.getState()
           
           # See if it changed, and track...
  -        if lastCurrentState==self.currentState:
  -            self.startOfState = default.time            
  +        if lastCurrentState==self.currentState:      
               self.sequenceInState += 1            
           else:
  -            self.previousState=lastCurrentState            
  +            self.previousState=lastCurrentState  
  +            self.startOfState = default.time                
               self.sequenceInState = 1
              
       def dump(self, indent=0, output=sys.stdout):
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message