]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed typo in last 24 hours job status graph
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 29 Dec 2010 12:02:12 +0000 (13:02 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 3 Mar 2011 09:39:29 +0000 (10:39 +0100)
 - From Completed with errors to Terminated with errors

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

index 2d584c30ce0738cc7f801a968c99747b920ee174..8087e35983d1a18289959b0c599871a9782f454b 100644 (file)
@@ -492,9 +492,9 @@ class Bweb extends DB {
                                        $where = "AND JobStatus = 'T' ";
                                        $label = "Completed";
                                break;
-                               case 'completed_errors':
-                                       $where = "AND JobStatus = 'E' ";
-                                       $label = "Completed with errors";
+                               case 'terminated_errors':
+                                       $where = $interval_where . "JobStatus = 'E' ";
+                                       $label = "Terminated with errors";
                                break;
                                case 'failed':
                                        $where = "AND JobStatus = 'f' ";
index cb54d310bfd5aafa725e26229eb5d501dd1b24a2..c4736bacd2effa564bf6610d57f489741e25ffd5 100644 (file)
@@ -110,7 +110,7 @@ $smarty->assign( 'elapsed_jobs', $dbSql->Get_ElapsedTime_Job() );
 
 // Last 24 hours Job status graph
 $data   = array();  
-$status = array( 'completed', 'completed_errors', 'failed', 'waiting', 'created', 'running', 'error' );
+$status = array( 'completed', 'terminated_errors', 'failed', 'waiting', 'created', 'running', 'error' );
 
 foreach( $status as $job_status ) {
        array_push( $data, $dbSql->GetJobsStatistics( $job_status ) );