From af1c1652699f702c07d47686871ce5185d8d6b89 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Tue, 12 Jul 2011 06:59:02 +0200 Subject: [PATCH] bacula-web: code improvment and formated job files in jobs list --- gui/bacula-web/backupjob-report.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.39.5