Changeset 908
- Timestamp:
- 04/12/03 18:58:28 (22 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykota
r902 r908 23 23 # 24 24 # $Log$ 25 # Revision 1.20 2003/04/12 16:58:28 jalet 26 # The workaround for HP printers was not correct, and there's probably no 27 # correct way to workaround the problem because we can't save the internal 28 # page counter in real time. The last job's size is unconditionnally set to 29 # 5 pages in this case. 30 # 25 31 # Revision 1.19 2003/04/11 08:56:49 jalet 26 32 # Comment … … 213 219 # its primary counter is only saved in a 10 increment, so 214 220 # it may be lower than the last page counter saved in the 215 # Quota Storage, we take the absolute value of the difference 216 # this should take care of the "missing" pages. 221 # Quota Storage. We unconditionnally set 5 (five) pages 222 # as the last job's size. This is a mean. For more accurate 223 # accounting, don't switch off your HP printers ! 217 224 # explanation at : http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html 218 225 kotafilter.logger.log_message(_("Error in page count value %i for user %s on printer %s") % (jobsize, lastusername, kotafilter.printername), "error") 219 jobsize = abs(jobsize)226 jobsize = 5 # Workaround for HP printers' feature ! 220 227 221 228 # update the quota for the previous user on this printer -
pykota/trunk/NEWS
r907 r908 48 48 may be lower than the real number of pages printed. 49 49 See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html 50 We unconditionnally set the last job's page count to five in this 51 case. 52 For a more accurate accounting, never switch your HP printers 53 off. 50 54 51 55 - A fix is provided for printers which only have a volatile 52 56 page counter (reset to 0 every time you switch the printer on) 53 This should allow PyKota to work fine with HP Laserjet54 4L/5L/6L .57 This should allow PyKota to work reasonably fine with HP Laserjet 58 4L/5L/6L, not perfect, but better than nothing. 55 59 See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html 60 For a more accurate accounting, never switch your HP printers 61 off. 56 62 57 63 - A bug was fixed when edpykota --add was used with users who already