]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Added elapsed time column to jobs list
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 21 Jun 2011 12:30:10 +0000 (14:30 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:13 +0000 (14:49 +0200)
gui/bacula-web/backupjob-report.php
gui/bacula-web/templates/backupjob-report.tpl

index b9e3504d849b57e6d465f4fb8415c9a8f0c395c4..04778602905fbafab681a284fdc6c015a49c64c8 100644 (file)
@@ -98,7 +98,8 @@
   if( ! PEAR::isError( $result ) )\r
   {\r
        while( $job = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) {\r
-               $job['Level'] = $joblevel[ $job['Level'] ];\r
+               $job['Level']       = $joblevel[ $job['Level'] ];
+               $job['ElapsedTime'] = TimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] );
                array_push( $jobs, $job);\r
        }               
   }else\r
index 5e5b18a049ba35e6354975b36ca2583f6fc2de29..741eccaa03b64082bf021deaad4f9202541afb11 100644 (file)
@@ -42,7 +42,7 @@
   <div class="box">\r
        <p class="title">Last jobs</p>\r
        \r
-       <table border="1">
+       <table>
                <tr>\r
                        <td class="tbl_header" width="60">Job Id</td>
                        <td class="tbl_header" width="60">Level</td>
@@ -50,6 +50,7 @@
                        <td class="tbl_header" width="70">Bytes</td>
                        <td class="tbl_header" width="80">Start time</td>
                        <td class="tbl_header" width="80">End time</td>
+                       <td class="tbl_header" width="80">Elapsed time</td>
                </tr>\r
                {foreach from=$jobs item=job}\r
                <tr>\r
@@ -59,6 +60,7 @@
                        <td>{$job.JobBytes}</td>\r
                        <td>{$job.StartTime}</td>
                        <td>{$job.EndTime}</td>\r
+                       <td>{$job.ElapsedTime}</td>
                </tr>\r
                {/foreach}\r
        </table>\r