]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Improved stored files number format in main dashboard
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 11 Jul 2011 08:21:19 +0000 (10:21 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:22 +0000 (14:49 +0200)
gui/bacula-web/index.php
gui/bacula-web/templates/index.tpl

index 7644d03c9b731169d410574ce2b5d0568b9003e3..c5be3a244b4c416ec8f33f2bf6cad40386bffd54 100644 (file)
@@ -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();
index 392225bbad1afa4379a2b748382a0326827abcb1..3f604c8d6a6be8f94a39b37db5172764fa8aaeeb 100644 (file)
@@ -73,7 +73,7 @@
                <td class="label">{t}Total bytes{/t}</td> <td class="info">{$stored_bytes}</td>
          </tr>
          <tr>
-               <td class="label">{t}Total files{/t}</td> <td class="info">{$stored_files} file(s)</td>
+               <td class="label">{t}Total files{/t}</td> <td class="info">{$stored_files}</td>
          </tr>
          <tr>
                <td class="label">{t}Database size{/t}</td> <td class="info">{$database_size}</td>