Skip to content
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

Page accounting does not work as documented #2427

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

Comments

Projects
None yet
1 participant
@michaelrsweet
Copy link
Collaborator

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.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 6, 2007

CUPS.org User: mike

The documentation is wrong; the format is:

PAGE: total #-pages

Sorry for the confusion!

@michaelrsweet 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
You can’t perform that action at this time.