From: Davide Franco Date: Tue, 12 Jul 2011 04:59:02 +0000 (+0200) Subject: bacula-web: code improvment and formated job files in jobs list X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af1c1652699f702c07d47686871ce5185d8d6b89;p=bacula%2Fbacula bacula-web: code improvment and formated job files in jobs list --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 9b7d5fc6da..c8220df04b 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -45,6 +45,7 @@ $backupjob_bytes = CUtils::Get_Human_Size( $backupjob_bytes ); $backupjob_files = $dbSql->getStoredFiles( LAST_WEEK, NOW, $backupjob_name ); + $backupjob_files = number_format( $backupjob_files, 0, '.', "'"); // Get the last 7 days interval (start and end) $days = CTimeUtils::getLastDaysIntervals( 7 ); @@ -108,10 +109,12 @@ // odd and even row if( count($jobs) % 2) $job['row_class'] = 'odd'; - // Job bytes in human format + + // Job bytes more easy to read $job['jobbytes'] = CUtils::Get_Human_Size( $job['jobbytes'] ); + $job['jobfiles'] = number_format($job['jobfiles'], 0 , '.', "'"); - array_push( $jobs, $job); + $jobs[] = $job; } }else $dbSql->TriggerDBError("Unable to get last jobs from catalog", $result);