]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Job files more lisible in jobs page (jobs list)
authorDavide Franco <bacula-dev@dflc.ch>
Sun, 24 Jul 2011 07:27:49 +0000 (09:27 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:27 +0000 (14:49 +0200)
gui/bacula-web/jobs.php

index 5a35f6284674c7d85b9512c6a690fa0e12047427..825696ab04e0c9a1f6cae5f7464d617935614d1c 100644 (file)
@@ -40,7 +40,7 @@
   $dbSql->tpl->assign( 'job_status', $job_status );
   
   // Global variables
-  $job_level = array( 'D' => 'Diff', 'I' => 'Incr', 'F' => 'Full' );
+  $job_levels = array( 'D' => 'Diff', 'I' => 'Incr', 'F' => 'Full' );
   
   $query .= "SELECT Job.JobId, Job.Name AS Job_name, Job.Type, Job.StartTime, Job.EndTime, Job.Level, Job.JobBytes, Job.JobFiles, Pool.Name, Job.JobStatus, Pool.Name AS Pool_name, Status.JobStatusLong ";
   $query .= "FROM Job ";
                        // Job execution execution time
                        $job['elapsed_time'] = CTimeUtils::Get_Elapsed_Time( $start, $end);
                        // Job Level
-                       $job['level'] = $job_level[ $job['level'] ];
-                       // Job Size
+                       $job['level'] = $job_levels[ $job['level'] ];
+                       // Job files
+                       $job['jobfiles'] = number_format( $job['jobfiles'], 0, '.', "'");
+                       // Job size
                        $job['jobbytes'] = CUtils::Get_Human_Size( $job['jobbytes'] );
 
                        array_push( $last_jobs, $job);