From a85affc60ff387e2e053d70e48a59988ec48184f Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Tue, 21 Jun 2011 14:30:10 +0200 Subject: [PATCH] bacula-web: Added elapsed time column to jobs list --- gui/bacula-web/backupjob-report.php | 3 ++- gui/bacula-web/templates/backupjob-report.tpl | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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}
-- 2.39.5