Changeset 1499 for pykota/trunk/bin
- Timestamp:
- 05/25/04 11:15:15 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1498 r1499 24 24 # 25 25 # $Log$ 26 # Revision 1.52 2004/05/25 09:15:13 jalet 27 # accounter.py : old code deleted 28 # the rest : now exports PYKOTAPRECOMPUTEDJOBSIZE and PYKOTAPRECOMPUTEDJOBPRICE 29 # 26 30 # Revision 1.51 2004/05/25 08:31:16 jalet 27 31 # Heavy CPU usage seems to be fixed at least ! … … 265 269 if self.config.getPrinterEnforcement(printer.Name) == "STRICT" : 266 270 self.softwareJobSize = self.precomputeJobSize() 267 self.logdebug("Precomputed job's size is : %s pages" % self.softwareJobSize)268 271 self.softwareJobPrice = userpquota.computeJobPrice(self.softwareJobSize) 272 self.logdebug("Precomputed job's size is %s pages, price is %s units" % (self.softwareJobSize, self.softwareJobPrice)) 273 os.putenv("PYKOTAPRECOMPUTEDJOBSIZE", str(self.softwareJobSize)) 274 os.putenv("PYKOTAPRECOMPUTEDJOBPRICE", str(self.softwareJobPrice)) 269 275 action = self.warnUserPQuota(userpquota) 270 276