From: Davide Franco Date: Tue, 21 Dec 2010 16:53:25 +0000 (+0100) Subject: bacula-web: Renamed CountLastJobs function to CountJobs in bweb.inc.php X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1174456f0689b0e96ad013e33837a9b3ad26cba;p=bacula%2Fbacula bacula-web: Renamed CountLastJobs function to CountJobs in bweb.inc.php - Even changed function's name in index.php --- diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index 74c9ec48de..e12d39b9d6 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -349,7 +349,7 @@ class Bweb extends DB { return $volumes; } // end function GetVolumeList() - public function CountLastJobs( $delay = LAST_DAY, $status ) + public function CountJobs( $delay = LAST_DAY, $status ) { $query = "SELECT COUNT(JobId) AS job_nb FROM Job "; diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index c2616eb231..6bc8e73d20 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -100,11 +100,11 @@ $smarty->assign('pools', $dbSql->GetVolumeList() ); //$smarty->assign( 'completed_jobs', $completed_jobs['completed_jobs'] ); // Last 24 hours completed jobs number (last_run_report.tpl) -$completed_jobs = $dbSql->CountLastJobs( LAST_DAY, 'completed' ); +$completed_jobs = $dbSql->CountJobs( LAST_DAY, 'completed' ); $smarty->assign( 'completed_jobs', $completed_jobs['job_nb'] ); // Last 24 hours failed jobs number (last_run_report.tpl) -$failed_jobs = $dbSql->CountLastJobs( LAST_DAY, 'failed' ); +$failed_jobs = $dbSql->CountJobs( LAST_DAY, 'failed' ); $smarty->assign( 'failed_jobs', $failed_jobs['job_nb'] ); // Last 24 hours elapsed time (last_run_report.tpl)