Changeset 52 for trunk/daemon


Ignore:
Timestamp:
04/07/05 15:51:07 (19 years ago)
Author:
bastiaans
Message:

daemon/togad.py:

  • Bugfix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/togad.py

    r51 r52  
    655655                        self.lastStored[ host ] = { }
    656656
    657                 if last_update_time > self.lastStored[ host ][ metric['name'] ]:
    658                         self.lastStored[ host ][ metric['name'] ] = last_update_time
     657                if self.lastStored[ host ].has_key( metric['name'] ):
     658                       
     659                        if last_update_time <= self.lastStored[ host ][ metric['name'] ]:
     660                                return 1
     661
     662                self.lastStored[ host ][ metric['name'] ] = last_update_time
    659663
    660664        def storeMetrics( self ):
Note: See TracChangeset for help on using the changeset viewer.