]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: code improvment and formated job files in jobs list
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 12 Jul 2011 04:59:02 +0000 (06:59 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Aug 2011 09:56:23 +0000 (11:56 +0200)
gui/bacula-web/backupjob-report.php

index 9b7d5fc6daf7ec1a0372ed123b9c9410a81348f6..c8220df04ba8bfd1cd601e2be5a50ecaeef195bb 100644 (file)
@@ -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)\r
   $days = CTimeUtils::getLastDaysIntervals( 7 );
                // 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);\r
+               $jobs[] = $job;
        }               
   }else\r
        $dbSql->TriggerDBError("Unable to get last jobs from catalog", $result);