From e1174456f0689b0e96ad013e33837a9b3ad26cba Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Tue, 21 Dec 2010 17:53:25 +0100 Subject: [PATCH] bacula-web: Renamed CountLastJobs function to CountJobs in bweb.inc.php - Even changed function's name in index.php --- gui/bacula-web/bweb.inc.php | 2 +- gui/bacula-web/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.5