From: Davide Franco Date: Sun, 24 Jul 2011 07:27:49 +0000 (+0200) Subject: bacula-web: Job files more lisible in jobs page (jobs list) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4831fc6228de1eed1c1eb4827ead363fb9ed65d8;p=bacula%2Fbacula bacula-web: Job files more lisible in jobs page (jobs list) --- diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index 5a35f62846..825696ab04 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -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 "; @@ -135,8 +135,10 @@ // 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);