From: Davide Franco Date: Tue, 21 Jun 2011 12:30:10 +0000 (+0200) Subject: bacula-web: Added elapsed time column to jobs list X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a85affc60ff387e2e053d70e48a59988ec48184f;p=bacula%2Fbacula bacula-web: Added elapsed time column to jobs list --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index b9e3504d84..0477860290 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -98,7 +98,8 @@ if( ! PEAR::isError( $result ) ) { while( $job = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) { - $job['Level'] = $joblevel[ $job['Level'] ]; + $job['Level'] = $joblevel[ $job['Level'] ]; + $job['ElapsedTime'] = TimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] ); array_push( $jobs, $job); } }else diff --git a/gui/bacula-web/templates/backupjob-report.tpl b/gui/bacula-web/templates/backupjob-report.tpl index 5e5b18a049..741eccaa03 100644 --- a/gui/bacula-web/templates/backupjob-report.tpl +++ b/gui/bacula-web/templates/backupjob-report.tpl @@ -42,7 +42,7 @@

Last jobs

- +
@@ -50,6 +50,7 @@ + {foreach from=$jobs item=job} @@ -59,6 +60,7 @@ + {/foreach}
Job Id LevelBytes Start time End timeElapsed time
{$job.JobBytes} {$job.StartTime} {$job.EndTime}{$job.ElapsedTime}