]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Removed useless Get_ElapsedTime() function
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 21 Jun 2011 11:30:27 +0000 (13:30 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:13 +0000 (14:49 +0200)
gui/bacula-web/includes/bweb.inc.php

index 2efed40f92e9ad6423cf436ca1ec94d77885e7f2..cf44760659badbf246f55f64b22689bea299b2a1 100644 (file)
@@ -353,27 +353,6 @@ class Bweb extends DB {
                }
        }
        
-       // Return elasped time string for a job
-       function Get_ElapsedTime( $start_time, $end_time ) 
-       { 
-               $diff = $end_time - $start_time;
-               
-               $daysDiff = sprintf("%02d", floor($diff/60/60/24) );
-               $diff -= $daysDiff*60*60*24;
-               
-               $hrsDiff = sprintf("%02d", floor($diff/60/60) );
-               $diff -= $hrsDiff*60*60;
-               
-               $minsDiff = sprintf("%02d", floor($diff/60) );
-               $diff -= $minsDiff*60;
-               $secsDiff = sprintf("%02d", $diff );
-               
-               if( $daysDiff > 0 )
-                       return $daysDiff . 'day(s) ' . $hrsDiff.':' . $minsDiff . ':' . $secsDiff;
-               else
-                       return $hrsDiff . ':' . $minsDiff . ':' . $secsDiff;
-       }
-       
        // Return Jobs statistics for a specific interval such as
        // - Completed jobs number
        // - Failed jobs number