From: Davide Franco Date: Thu, 7 Jul 2011 22:01:02 +0000 (+0200) Subject: bacula-web: Fixed units conversion for all and last 24 hours stored bytes X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3b096461719b4b965ace837ff10a3ca60d862b6e;p=bacula%2Fbacula bacula-web: Fixed units conversion for all and last 24 hours stored bytes --- 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 );