Page accounting does not work as documented #2427

Closed
michaelrsweet opened this Issue Jun 29, 2007 · 1 comment

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Jun 29, 2007

Version: 1.2-current
CUPS.org User: opher

Hello,
The man page for filter(7) has this to say on page accounting:

PAGE: page-number #-copies
PAGE: #-pages total
Adds an entry to the current PageLog. The first form adds #-copies to the job-media-sheets-completed attribute. The second form sets the job-media-sheets-completed attribute to #-pages.

The second form - the total page count - does not work.
I'm running two machines FC6-i386 with CUPS ver 1.2.10 and 1.2.7 (rpms distributed by fedora).

In my filter I tried: echo "PAGE: 70" >&2
The page_log showed:
BPHhold1 java 847 [29/Jun/2007:19:09:08 +0300] 70 - 10.236.1.45
and the Web interface claimed -2129748404 number of pages!

Just for fun also tried: echo "PAGE: 70 total" >&2
The page_log showed:
BPHhold1 java 848 [29/Jun/2007:19:11:32 +0300] 70 total - 10.236.1.45
and the Web interface claimed 1 number of pages.

So, is this a documentation error or a bug?

Opher.

Collaborator

michaelrsweet commented Jul 6, 2007

CUPS.org User: mike

The documentation is wrong; the format is:

PAGE: total #-pages

Sorry for the confusion!

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment