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/pjl.py

    r3133 r3162  
    5858class Handler : 
    5959    """A class for PJL print accounting.""" 
    60     def __init__(self, parent, printerhostname) : 
     60    def __init__(self, parent, printerhostname, skipinitialwait=False) : 
    6161        self.parent = parent 
    6262        self.printerHostname = printerhostname 
     63        self.skipinitialwait = skipinitialwait 
    6364        try : 
    6465            self.port = int(self.parent.arguments.split(":")[1].strip()) 
     
    181182        while 1 : 
    182183            self.retrievePJLValues() 
     184            if (self.printerInternalPageCounter is not None) \ 
     185               and self.skipinitialwait \ 
     186               and (os.environ.get("PYKOTAPHASE") == "BEFORE") : 
     187                self.parent.filter.logdebug("No need to wait for the printer to be idle, this should be the case already.") 
     188                return  
    183189            idle_flag = 0 
    184190            if self.printerStatus in ('10000', '10001', '35078', '40000') :