Changeset 3027
- Timestamp:
- 10/05/06 11:41:05 (18 years ago)
- Location:
- pykota/trunk/pykota/accounters
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/pjl.py
r3025 r3027 33 33 ITERATIONDELAY = 1 # 1 Second 34 34 STABILIZATIONDELAY = 3 # We must read three times the same value to consider it to be stable 35 NOPRINTINGMAXDELAY = 60 # The printer must begin to print within 60 seconds .35 NOPRINTINGMAXDELAY = 60 # The printer must begin to print within 60 seconds byb default. 36 36 37 37 # Here's the real thing : -
pykota/trunk/pykota/accounters/snmp.py
r3025 r3027 29 29 """ 30 30 31 ITERATIONDELAY = 1.5 # 1.5 Second32 STABILIZATIONDELAY = 3 # We must read three times the same value toconsider it to be stable33 NOPRINTINGMAXDELAY = 60 # The printer must begin to print within 60 seconds .31 ITERATIONDELAY = 4 # time to sleep between two loops 32 STABILIZATIONDELAY = 5 # number of consecutive times the idle status must be seen before we consider it to be stable 33 NOPRINTINGMAXDELAY = 60 # The printer must begin to print within 60 seconds by default. 34 34 35 35 import sys … … 257 257 varBinds[int(errorIndex)-1]), \ 258 258 "error") 259 self.initValues() 259 260 else : 260 261 self.printerInternalPageCounter = max(self.printerInternalPageCounter, int(varBinds[0][1].prettyPrint())) … … 290 291 except (SnmpOverUdpError, select.error), msg : 291 292 self.parent.filter.printInfo(_("Network error while doing SNMP queries on printer %s : %s") % (self.printerHostname, msg), "warn") 293 self.initValues() 292 294 tsp.close() 293 295 … … 300 302 except TypeMismatchError, msg : 301 303 self.parent.filter.printInfo(_("SNMP message decoding error for printer %s : %s") % (self.printerHostname, msg), "warn") 304 self.initValues() 302 305 else : 303 306 if req.apiAlphaMatch(rsp):