From: Davide Franco Date: Sat, 9 Jul 2011 14:07:03 +0000 (+0200) Subject: bacula-web: Improved code for stored files informations X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0ddc339d9c704b1a948f36ed6d0c1ccb968a38a;p=bacula%2Fbacula bacula-web: Improved code for stored files informations --- diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index dbc66738cb..d081d66e6f 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -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();