]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Removed useless function CountJobsbyLevel() in bweb class
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 8 Jul 2011 17:39:40 +0000 (19:39 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:21 +0000 (14:49 +0200)
gui/bacula-web/includes/bweb.inc.php

index c1a57c5f1a027db492d5b5611a3a6c8601fc6d8b..17be84d6bc3852a313bd2b916f8f4bdd76cae582 100644 (file)
@@ -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 ";