Show
Ignore:
Timestamp:
04/12/05 10:44:04 (19 years ago)
Author:
jerome
Message:

Now SNMP handling should correctly detect PowerSave/StandBy? mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounters/hardware.py

    r2200 r2202  
    154154            while 1 : 
    155155                self.retrieveSNMPValues() 
    156                 statusAsString = printerStatusValues.get(self.printerStatus) 
     156                pstatusAsString = printerStatusValues.get(self.printerStatus) 
     157                dstatusAsString = deviceStatusValues.get(self.deviceStatus) 
    157158                idle_flag = 0 
    158                 if statusAsString in ('idle',) : 
    159                     idle_flag = 1 
     159                if (pstatusAsString == 'idle') or \ 
     160                   ((pstatusAsString == 'other') and \ 
     161                    (dstatusAsString == 'running')) : 
     162                    idle_flag = 1       # Standby / Powersave is considered idle 
    160163                if idle_flag :     
    161164                    idle_num += 1