]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Renamed CountLastJobs function to CountJobs in bweb.inc.php
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 21 Dec 2010 16:53:25 +0000 (17:53 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:34 +0000 (14:43 +0200)
 - Even changed function's name in index.php

gui/bacula-web/bweb.inc.php
gui/bacula-web/index.php

index 74c9ec48de18456f4fb5487a5bb5735446837b50..e12d39b9d626a91d6bdb090c7e30ab21ced5793d 100644 (file)
@@ -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 ";
                        
index c2616eb231f7885cb8df176ab567ed8970f3624c..6bc8e73d20eb02165e759b25911d053afac98d2b 100644 (file)
@@ -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)