From: Davide Franco Date: Wed, 6 Jul 2011 19:06:32 +0000 (+0200) Subject: bacula-web: Increased efficience of code and fixed small bugs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd3efbf3ac72b78d77643490cb99a171de77405b;p=bacula%2Fbacula bacula-web: Increased efficience of code and fixed small bugs --- 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 );