]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/bweb.inc.php
bacula-web: Improved stored bytes graph and modified dashboard design
[bacula/bacula] / gui / bacula-web / bweb.inc.php
index d943d955527d9c651c180455104125e57551579a..2b544a5c8cc538c73042fd3400b9be211198e813 100644 (file)
@@ -593,8 +593,15 @@ class Bweb extends DB {
                        if( PEAR::isError( $result ) ) {
                                die( "Unable to get Job Bytes from catalog" );
                        }else{
+                               $stored_bytes = 0;
                                $tmp = $result->fetchRow( DB_FETCHMODE_ASSOC );
-                               return array( $tmp['EndTime'], $tmp['stored_bytes'] );
+                               
+                               $day = date( "d/m", strtotime($end_date) );
+                               
+                               if( isset( $tmp['stored_bytes'] ) )
+                                       $stored_bytes = $tmp['stored_bytes'];
+                               
+                               return array( $day, $stored_bytes );
                        }
                }
 } // end class Bweb