From 3b096461719b4b965ace837ff10a3ca60d862b6e Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 8 Jul 2011 00:01:02 +0200 Subject: [PATCH] bacula-web: Fixed units conversion for all and last 24 hours stored bytes --- gui/bacula-web/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 5176f56722..f929df0ac3 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -27,10 +27,12 @@ $dbSql->tpl->assign('stored_files', $dbSql->GetStoredFiles( ALL ) ); $dbSql->tpl->assign('database_size', $dbSql->GetDbSize()); // Overall stored bytes -$dbSql->tpl->assign('stored_bytes', $dbSql->getStoredBytes( FIRST_DAY, NOW ) ); +$stored_bytes = CUtils::Get_Human_Size( $dbSql->getStoredBytes( FIRST_DAY, NOW ) ); +$dbSql->tpl->assign('stored_bytes', $stored_bytes); // Total stored bytes since last 24 hours -$dbSql->tpl->assign('bytes_last', $dbSql->getStoredBytes( LAST_DAY, NOW ) ); +$bytes_last = CUtils::Get_Human_Size( $dbSql->getStoredBytes( LAST_DAY, NOW ) ); +$dbSql->tpl->assign('bytes_last', $bytes_last ); // Total stored files since last 24 hours $files_last = $dbSql->GetStoredFiles( LAST_DAY ); -- 2.39.5