]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Increased efficience of code and fixed small bugs
authorDavide Franco <bacula-dev@dflc.ch>
Wed, 6 Jul 2011 19:06:32 +0000 (21:06 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:20 +0000 (14:49 +0200)
gui/bacula-web/index.php

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