From 000850f4a4f25a5b8e8ca3445f00e1e892ab30e7 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Tue, 15 Feb 2011 12:09:22 +0100 Subject: [PATCH] bacula-web: Fixed bug in GetStoredFilesByJob() function - Fixed a bug with number of stored files in bweb.inc.php --- gui/bacula-web/bweb.inc.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index 05c35ee54e..39deeaab53 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -676,25 +676,16 @@ class Bweb extends DB { $result = $this->db_link->query( $query ); - //echo $query . '
'; - if( PEAR::isError( $result ) ) { die( "Unable to get Job Files from catalog" ); }else{ $stored_bytes = 0; $tmp = $result->fetchRow( DB_FETCHMODE_ASSOC ); - var_dump( $tmp ); - $day = date( "D d", strtotime($end_date) ); - /* - if( isset( $tmp['stored_bytes'] ) ) { - $hbytes = $this->human_file_size( $tmp['stored_files'], 3, 'GB'); - $hbytes = explode( " ", $hbytes ); - $stored_bytes = $hbytes[0]; - } - */ + $day = date( "D d", strtotime($end_date) ); + $stored_files = $tmp['stored_files']; - return array( $day, $stored_bytes ); + return array( $day, $stored_files ); } } -- 2.39.5