Show
Ignore:
Timestamp:
06/03/05 10:49:34 (19 years ago)
Author:
jerome
Message:

Fixed incorrect loop counter in pjl and snmp accounters.
Now uses USTATUS in the pjl accounter to workaround printers
which switch to 'busy' state when we request their status
(meaning they were always busy) : seems to work just fine
now on my HP2300N.

Files:
1 modified

Legend:

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

    r2205 r2277  
    2323# 
    2424 
    25 ITERATIONDELAY = 1.0   # 1 Second 
     25ITERATIONDELAY = 1.5   # 1.5 Second 
    2626STABILIZATIONDELAY = 3 # We must read three times the same value to consider it to be stable 
    2727 
     
    159159                if idle_flag :     
    160160                    idle_num += 1 
    161                     if idle_num > STABILIZATIONDELAY : 
     161                    if idle_num >= STABILIZATIONDELAY : 
    162162                        # printer status is stable, we can exit 
    163163                        break