]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Improved code for stored files informations
authorDavide Franco <bacula-dev@dflc.ch>
Sat, 9 Jul 2011 14:07:03 +0000 (16:07 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:22 +0000 (14:49 +0200)
gui/bacula-web/index.php

index dbc66738cb14bc92b380419aa2cd96d550f635c3..d081d66e6f592fddea0980df9a6fb6bbed4fdb05 100644 (file)
@@ -22,7 +22,7 @@ $dbSql                                = new Bweb();
 $days_stored_bytes     = array();
 
 // Stored files number 
-$dbSql->tpl->assign('stored_files', $dbSql->GetStoredFiles( ALL ) );
+$dbSql->tpl->assign('stored_files', $dbSql->getStoredFiles( FIRST_DAY, NOW ) );
   
 // Database size
 $dbSql->tpl->assign('database_size', $dbSql->GetDbSize());
@@ -33,7 +33,7 @@ $dbSql->tpl->assign('stored_bytes', $stored_bytes);
 
 // Total bytes and files for last 24 hours
 $dbSql->tpl->assign('bytes_last', CUtils::Get_Human_Size( $dbSql->getStoredBytes( LAST_DAY, NOW ) ) );
-$dbSql->tpl->assign('files_last', $dbSql->GetStoredFiles( LAST_DAY ) );
+$dbSql->tpl->assign('files_last', $dbSql->getStoredFiles( LAST_DAY, NOW ) );
 
 // Number of clients
 $nb_clients = $dbSql->Get_Nb_Clients();