From: Davide Franco Date: Tue, 15 Feb 2011 11:09:22 +0000 (+0100) Subject: bacula-web: Fixed bug in GetStoredFilesByJob() function X-Git-Tag: Release-5.2.1~528 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a3e3c529ed7e10209f75a1c2fed8283135b3c15;p=bacula%2Fbacula bacula-web: Fixed bug in GetStoredFilesByJob() function - Fixed a bug with number of stored files in bweb.inc.php --- 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 ); } }