case 'canceled':
$where_status = "JobStatus = 'A' ";
break;
+ case 'waiting':
+ $where_status = "JobStatus IN ('F','S','M','m','s','j','c','d','t') ";
+ break;
} // end switch
}
// Get volumes list (volumes.tpl)
$smarty->assign('pools', $dbSql->GetVolumeList() );
-// Last 24 hours completed jobs number (last_run_report.tpl)
+// Last 24 hours completed jobs number
$smarty->assign( 'completed_jobs', $dbSql->CountJobs( LAST_DAY, 'completed' ) );
-// Last 24 hours failed jobs number (last_run_report.tpl)
+// Last 24 hours failed jobs number
$smarty->assign( 'failed_jobs', $dbSql->CountJobs( LAST_DAY, 'failed' ) );
+// Last 24 hours waiting jobs number
+$smarty->assign( 'waiting_jobs', $dbSql->CountJobs( LAST_DAY, 'waiting' ) );
+
// Last 24 hours elapsed time (last_run_report.tpl)
//$smarty->assign( 'elapsed_jobs', $dbSql->Get_ElapsedTime_Job() );
<td class="info">{$completed_jobs}</td>
<td class="info"> <a href="jobs.php" title="View last completed jobs">View</a> </td>
</tr>
+ <tr>
+ <td class="label">Waiting jobs</td>
+ <td class="info">{$waiting_jobs}</td>
+ <td class="info"> <a href="jobs.php" title="View last completed jobs">View</a> </td>
+ </tr>
<!--
<tr>
<td class="label">Elapsed time</td>