Changeset 1819

Show
Ignore:
Timestamp:
10/13/04 18:56:45 (19 years ago)
Author:
jalet
Message:

Added a space to the pattern to differentiate jobs which id begins with
the same digits, like jobs 87 and 879 for example : if printed by same
user on same printer, but from a different host this could have broken
the result. (In reality this couldn't happen because 879 would be the
last line to match anyway because of job ordering, but we never know
if the page_log file gets corrupt somewhat)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1713 r1819  
    2424# 
    2525# $Log$ 
     26# Revision 1.73  2004/10/13 16:56:45  jalet 
     27# Added a space to the pattern to differentiate jobs which id begins with 
     28# the same digits, like jobs 87 and 879 for example : if printed by same 
     29# user on same printer, but from a different host this could have broken 
     30# the result. (In reality this couldn't happen because 879 would be the 
     31# last line to match anyway because of job ordering, but we never know 
     32# if the page_log file gets corrupt somewhat) 
     33# 
    2634# Revision 1.72  2004/09/13 16:02:44  jalet 
    2735# Added fix for incorrect job's size when hardware accounting fails 
     
    354362            # TODO : read backward so we could take first value seen 
    355363            # TODO : here we read forward so we must take the last value seen 
    356             prefix = ("%s %s %s" % (printername, username, jobid)).lower() 
     364            prefix = ("%s %s %s " % (printername, username, jobid)).lower() 
    357365            matchingline = None 
    358366            while 1 :