From 3b3955604c1949219a2ab743a8efb9a9578beeb0 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Mon, 11 Jul 2011 10:21:19 +0200 Subject: [PATCH] bacula-web: Improved stored files number format in main dashboard --- gui/bacula-web/index.php | 4 ++-- gui/bacula-web/templates/index.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 7644d03c9b..c5be3a244b 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -22,7 +22,7 @@ $dbSql = new Bweb(); $days_stored_bytes = array(); // Stored files number -$dbSql->tpl->assign('stored_files', $dbSql->getStoredFiles( FIRST_DAY, NOW ) ); +$dbSql->tpl->assign('stored_files', number_format($dbSql->getStoredFiles( FIRST_DAY, NOW ), 0, '.', "'" ) ); // Database size $dbSql->tpl->assign('database_size', $dbSql->GetDbSize()); @@ -33,7 +33,7 @@ $dbSql->tpl->assign('stored_bytes', $stored_bytes); // Total bytes and files for last 24 hours $dbSql->tpl->assign('bytes_last', CUtils::Get_Human_Size( $dbSql->getStoredBytes( LAST_DAY, NOW ) ) ); -$dbSql->tpl->assign('files_last', $dbSql->getStoredFiles( LAST_DAY, NOW ) ); +$dbSql->tpl->assign('files_last', number_format($dbSql->getStoredFiles( LAST_DAY, NOW ), 0, '.', "'" ) ); // Number of clients $nb_clients = $dbSql->Get_Nb_Clients(); diff --git a/gui/bacula-web/templates/index.tpl b/gui/bacula-web/templates/index.tpl index 392225bbad..3f604c8d6a 100644 --- a/gui/bacula-web/templates/index.tpl +++ b/gui/bacula-web/templates/index.tpl @@ -73,7 +73,7 @@ {t}Total bytes{/t} {$stored_bytes} - {t}Total files{/t} {$stored_files} file(s) + {t}Total files{/t} {$stored_files} {t}Database size{/t} {$database_size} -- 2.39.5