src/dird/job.c
static bool job_check_maxwaittime(JCR *jcr)
{
   bool cancel = false;
   JOB *job = jcr->job;
   utime_t current=0;

   if (!job_waiting(jcr)) {
      return false;
   }

   if (jcr->wait_time) {
      current = watchdog_time - jcr->wait_time;
   }

   Dmsg2(200, "check maxwaittime %u >= %u\n",
         current + jcr->wait_time_sum, job->MaxWaitTime);
   if (job->MaxWaitTime != 0 &&
       (current + jcr->wait_time_sum) >= job->MaxWaitTime) {
      cancel = true;
   }

   return cancel;
}
/*
 * Check if the maxwaittime has expired and it is possible
 *  to cancel the job.
 */
Check if the maxwaittime has expired and it is possible
to cancel the job.
Check if the maxwaittime has expired and it is possible to cancel the job .
static bool job_check_maxwaittime(JCR *jcr)
{
   bool cancel = false;
   JOB *job = jcr->job;
   utime_t current=0;
   if (!job_waiting(jcr)) {
      return false;
   }
   if (jcr->wait_time) {
      current = watchdog_time - jcr->wait_time;
   }
   Dmsg2(200, "check maxwaittime %u >= %u\n",
         current + jcr->wait_time_sum, job->MaxWaitTime);
   if (job->MaxWaitTime != 0 &&
       (current + jcr->wait_time_sum) >= job->MaxWaitTime) {
      cancel = true;
   }
   return cancel;
}
static bool job_check_maxwaittime ( JCR * jcr ) { bool cancel = false ; JOB * job = jcr -> job ; utime_t current = 0 ; if ( ! job_waiting ( jcr ) ) { return false ; } if ( jcr -> wait_time ) { current = watchdog_time - jcr -> wait_time ; } Dmsg2 ( 200 , " \n " , current + jcr -> wait_time_sum , job -> MaxWaitTime ) ; if ( job -> MaxWaitTime != 0 && ( current + jcr -> wait_time_sum ) >= job -> MaxWaitTime ) { cancel = true ; } return cancel ; }
Check if the maxwaittime has expired and it is possible
  to cancel the job.
Check if the maxwaittime has expired and it is possible to cancel the job .