From dadc206bdc156bae330b72b51889807b4367972a Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Tue, 21 Jun 2011 14:22:17 +0200 Subject: [PATCH] bacula-web: Removed useless code in elapsed time calculation for jobs --- gui/bacula-web/jobs.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index 721e98a590..9da8f531f8 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -117,13 +117,8 @@ // Elapsed time for the job $start = $job['StartTime']; $end = $job['EndTime']; - - if( $start == '0000-00-00 00:00:00' ) - $job['elapsed_time'] = 'N/A'; - elseif( $end == '0000-00-00 00:00:00' ) - $job['elapsed_time'] = TimeUtils::Get_Elapsed_Time( strtotime($start), mktime() ); - else - $job['elapsed_time'] = TimeUtils::Get_Elapsed_Time( strtotime($start), strtotime($end) ); + + $job['elapsed_time'] = TimeUtils::Get_Elapsed_Time( $start, $end); // Job Level $job['Level'] = $job_level[ $job['Level'] ]; -- 2.39.5