MCPcopy Create free account
hub / github.com/OpenPrinting/cups / _cupsNextDelay

Function _cupsNextDelay

cups/request.c:509–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507 */
508
509int /* O - Next delay value */
510_cupsNextDelay(int current, /* I - Current delay value or 0 */
511 int *previous) /* IO - Previous delay value */
512{
513 int next; /* Next delay value */
514
515
516 if (current > 0)
517 {
518 next = (current + *previous) % 12;
519 *previous = next < current ? 0 : current;
520 }
521 else
522 {
523 next = 1;
524 *previous = 0;
525 }
526
527 return (next);
528}
529
530
531/*

Callers 3

mainFunction · 0.85
monitor_printerFunction · 0.85
cupsCopyDestInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected