]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed units conversion for all and last 24 hours stored bytes
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 7 Jul 2011 22:01:02 +0000 (00:01 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:21 +0000 (14:49 +0200)
gui/bacula-web/index.php

index 5176f567227664a2992c81f10dffda0a37b81eff..f929df0ac32c8e92d2c0ee0132157d9c50c24190 100644 (file)
@@ -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 );