Changeset 179 for trunk/daemon
- Timestamp:
- 08/03/05 10:24:23 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/togad.py
r176 r179 1019 1019 """Store metric from host in memory""" 1020 1020 1021 # <ATOMIC> 1022 # 1023 self.slot.acquire() 1024 1021 1025 if self.myMetrics.has_key( host ): 1022 1026 … … 1028 1032 1029 1033 # Allready have this metric, abort 1034 self.slot.release() 1030 1035 return 1 1031 1036 else: … … 1038 1043 # atomic code; only 1 thread at a time may access the stack 1039 1044 1040 # <ATOMIC>1041 #1042 self.slot.acquire()1043 1044 1045 self.myMetrics[ host ][ metric['name'] ].append( metric ) 1045 1046 … … 1133 1134 except IndexError, msg: 1134 1135 1136 # Somehow sometimes myMetrics[ hostname ][ metricname ] 1137 # is still len 0 when the statement is executed. 1138 # Just ignore indexerror's.. 1135 1139 pass 1136 1140 … … 1160 1164 update_rets.append( update_ret ) 1161 1165 1162 if not (1) in update_rets: 1163 1164 self.memLastUpdate( hostname, metricname, metrics_to_store ) 1166 # Lets ignore errors here for now, we need to make sure last update time 1167 # is correct! 1168 # 1169 #if not (1) in update_rets: 1170 1171 self.memLastUpdate( hostname, metricname, metrics_to_store ) 1165 1172 1166 1173 def makeTimeSerial( self ):
Note: See TracChangeset
for help on using the changeset viewer.