From dd3efbf3ac72b78d77643490cb99a171de77405b Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Wed, 6 Jul 2011 21:06:32 +0200 Subject: [PATCH] bacula-web: Increased efficience of code and fixed small bugs --- gui/bacula-web/index.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index ccfd117a36..5176f56722 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -27,12 +27,10 @@ $dbSql->tpl->assign('stored_files', $dbSql->GetStoredFiles( ALL ) ); $dbSql->tpl->assign('database_size', $dbSql->GetDbSize()); // Overall stored bytes -$result = $dbSql->GetStoredBytes( ALL ); -$dbSql->tpl->assign('stored_bytes', CUtils::Get_Human_Size( $result['stored_bytes'] ) ); +$dbSql->tpl->assign('stored_bytes', $dbSql->getStoredBytes( FIRST_DAY, NOW ) ); // Total stored bytes since last 24 hours -$result = $dbSql->GetStoredBytes( LAST_DAY ); -$dbSql->tpl->assign('bytes_last', CUtils::Get_Human_Size( $result['stored_bytes'] ) ); +$dbSql->tpl->assign('bytes_last', $dbSql->getStoredBytes( LAST_DAY, NOW ) ); // Total stored files since last 24 hours $files_last = $dbSql->GetStoredFiles( LAST_DAY ); -- 2.39.5