Show
Ignore:
Timestamp:
04/14/07 10:50:47 (17 years ago)
Author:
jerome
Message:

Added the 'skipinitialwait' directive to pykota.conf.
This halves the inter-job delay when using hardware accounting
when set.

Files:
1 modified

Legend:

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

    r3133 r3162  
    109109           The external command must report the life time page number of the printer on stdout. 
    110110        """ 
     111        skipinitialwait = self.filter.config.getPrinterSkipInitialWait(printer) 
    111112        commandline = self.arguments.strip() % locals() 
    112113        cmdlower = commandline.lower() 
    113114        if (cmdlower == "snmp") or cmdlower.startswith("snmp:") : 
    114             return snmp.Handler(self, printer).retrieveInternalPageCounter() 
     115            return snmp.Handler(self, printer, skipinitialwait).retrieveInternalPageCounter() 
    115116        elif (cmdlower == "pjl") or cmdlower.startswith("pjl:") : 
    116             return pjl.Handler(self, printer).retrieveInternalPageCounter() 
     117            return pjl.Handler(self, printer, skipinitialwait).retrieveInternalPageCounter() 
    117118             
    118119        if printer is None :