- Timestamp:
- 04/16/10 15:06:05 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/snmp.py
r3519 r3529 164 164 previousValue = self.parent.getLastPageCounter() 165 165 firstvalue = None 166 while 1:166 while True : 167 167 self.retrieveSNMPValues() 168 statusAsString = printerStatusValues.get(self.printerStatus)169 if statusAsString in ('printing', 'warmup') :168 pstatusAsString = printerStatusValues.get(self.printerStatus) 169 if pstatusAsString in ('printing', 'warmup') : 170 170 break 171 171 if self.printerInternalPageCounter is not None : … … 187 187 # More than X seconds without the printer being in 'printing' mode 188 188 # We can safely assume this won't change if printer is now 'idle' 189 pstatusAsString = printerStatusValues.get(self.printerStatus)190 189 dstatusAsString = deviceStatusValues.get(self.deviceStatus) 191 190 if (pstatusAsString == 'idle') or \ … … 209 208 statusstabilizationloops = constants.get(self.parent.filter, "StatusStabilizationLoops") 210 209 idle_num = idle_flag = 0 211 while 1:210 while True : 212 211 self.retrieveSNMPValues() 213 212 pstatusAsString = printerStatusValues.get(self.printerStatus)