]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Removed useless code in elapsed time calculation for jobs
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 21 Jun 2011 12:22:17 +0000 (14:22 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:13 +0000 (14:49 +0200)
gui/bacula-web/jobs.php

index 721e98a590cc71d55fc3a38884834960863ae6b4..9da8f531f82c15bde2bccc941be761630d4024d5 100644 (file)
                // 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'] ];