Retrieving the total number of Jobs in process from cupsd

Sebastian James seb at esfnet.co.uk
Sun Apr 22 01:37:00 PDT 2007


> The server code, in scheduler/ipp.c is:
>
> /*
>  * 'get_maxjobs()' - Get the maximum number of jobs that the
>  * configuration says can be concurrently processed. This is the
>  * MaxJobs parameter in cupds.conf. We find it here in the global
>  * variable MaxJobs. Also return the number of jobs currently being
>  * processed by all queues.
>  */
>
> static void
> get_maxjobs(client_t *con)		/* I - Client connection */
> {
>   job_t *thisJob;
>   int jobCount = 0;
>
>   /* to be L_DEBUG2 */
>   LogMessage(L_DEBUG2, "get_maxjobs(%p[%d], %x)\n", con, con->http.fd, type);
>

Whoops, the LogMessage line should read:
LogMessage(L_DEBUG2, "get_maxjobs(%p[%d])\n", con, con->http.fd);





More information about the cups-devel mailing list