From 790dac071802b48c950c872142efb8c3b9ef8603 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 8 Jul 2011 19:39:40 +0200 Subject: [PATCH] bacula-web: Removed useless function CountJobsbyLevel() in bweb class --- gui/bacula-web/includes/bweb.inc.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/gui/bacula-web/includes/bweb.inc.php b/gui/bacula-web/includes/bweb.inc.php index c1a57c5f1a..17be84d6bc 100644 --- a/gui/bacula-web/includes/bweb.inc.php +++ b/gui/bacula-web/includes/bweb.inc.php @@ -250,29 +250,6 @@ class Bweb extends DB return $volumes; } // end function GetVolumeList() - public function CountJobsbyLevel( $delay = LAST_DAY, $level = 'F' ) - { - $end_date = mktime(); - $start_date = $end_date - $delay; - - $start_date = date( "Y-m-d H:i:s", $start_date ); - $end_date = date( "Y-m-d H:i:s", $end_date ); - - $query = "SELECT COUNT(JobId) as jobs FROM Job "; - $query .= "WHERE (EndTime BETWEEN '$start_date' AND '$end_date') AND "; - $query .= "Level = '$level' "; - - $result = $this->db_link->query( $query ); - - if (PEAR::isError( $result ) ) { - $this->TriggerDBError( 'Unable to get number of jobs with ' . $level . ' status from catalog', $result); - }else { - $jobs = $result->fetchRow(); - return $jobs['jobs']; - } - - } - public function countJobs( $start_timestamp, $end_timestamp, $status = 'ALL', $level = 'ALL', $jobname = 'ALL', $client = 'ALL' ) { $query = "SELECT COUNT(JobId) AS job_nb FROM Job "; -- 2.39.5