]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed bug in GetStoredFilesByJob() function
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 15 Feb 2011 11:09:22 +0000 (12:09 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 3 Mar 2011 09:39:31 +0000 (10:39 +0100)
 - Fixed a bug with number of stored files in bweb.inc.php

gui/bacula-web/bweb.inc.php

index 05c35ee54e787ad4cae4d5d6332ca2fc27490e2d..39deeaab5314dc6ffa0a744b02dbb28120e3ef39 100644 (file)
@@ -676,25 +676,16 @@ class Bweb extends DB {
                        
                        $result = $this->db_link->query( $query );
                        
-                       //echo $query . '<br />';
-                       
                        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 );
                        }                       
                }