-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Total page counter is inconsistent in the page_log #4991
Comments
The total numbers are coming from the printer (either via SNMP or IPP page counters). And if a queue is flagged as needing to have a fresh backend run for each file in the job (including banners), then you'l get multiple "total" lines. Ideally the "total" line should only get written once per job (and perhaps at the completion of the job) but that isn't something we've focused on since page accounting in general has traditionally been a weak point with CUPS (printer drivers == unreliable accounting). I'll hold onto this bug to track improvements - if possible, can you provide some details about the different printers and drivers you are using for these print queues so I know where to focus my efforts? Thanks! |
All my printers are Ricoh, and I'm using Ricoh's OpenPrinting PostScript driver with them: The drivers are almost identical, except for optional components and paper type options, you can use any of them for testing. For example, C3004: http://www.openprinting.org/ppd-o-matic.php?driver=Postscript-Ricoh&printer=Ricoh-MP_C3004&show=1 Perhaps it would be a good idea to count the total number of pages as a sum of the pages counted by the filters? pdftopdf seems to be very good at counting these days. |
Only FYI |
I think what I'm going to do is take MAX(filter,printer-reported) for the page count and report that once in the page_log from now on at job completion (as a "total" line, for compatibility). |
…logging a total of the pages printed at job completion (Issue #4991) - man/cupsd-logs.man: Update page_log information. - scheduler/job.c: Move cupsdLogPage to finalize_job, make update_job only accept a "PAGE: total NNN" message if the count is greater than the total cupsd already has. Also track sheets. - test/run-stp-tests.sh: Fix page log verification for Test3 since we now just have the total lines.
Hello everyone, |
When printing with CUPS 2.2.3, cups-filters 1.13.4, the number of individual pages in the log are correct, but the "total" line is almost always erroneous. Sometimes it is 0, which is strange. Sometimes it appears twice after printing one file.
Excerpt from the log:
Here, individual page counters provided by pdftopdf are correct, but the total line that I assume is inserted by CUPS itself is wrong. Tested with printers connected via IPP and Socket, no noticeable difference.
Attached is a job log for Job 82, for example. It printed 4 pages, but total returned was 1.
job82.txt
The text was updated successfully, but these errors were encountered: