]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Last 7 days transfered bytes graph in GigaBytes
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 13 Dec 2010 14:42:18 +0000 (15:42 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:32 +0000 (14:43 +0200)
gui/bacula-web/bweb.inc.php
gui/bacula-web/templates/index.tpl

index 2b544a5c8cc538c73042fd3400b9be211198e813..cab8ed40f7dd4cd60e7230efc1ccf0cb8bd44a58 100644 (file)
@@ -598,8 +598,11 @@ class Bweb extends DB {
                                
                                $day = date( "d/m", strtotime($end_date) );
                                
-                               if( isset( $tmp['stored_bytes'] ) )
-                                       $stored_bytes = $tmp['stored_bytes'];
+                               if( isset( $tmp['stored_bytes'] ) ) {
+                                       $hbytes = $this->human_file_size( $tmp['stored_bytes'], 3);
+                                       $hbytes = explode( " ", $hbytes );
+                                       $stored_bytes = $hbytes[0];
+                               }
                                
                                return array( $day, $stored_bytes );
                        }
index 95820a5318ed0f92826dcc4e10ef5d7b07cbacee..83047b9fdebbe67f1adb1506f786f970f681a1a8 100644 (file)
@@ -47,7 +47,7 @@
   </div> <!-- end div box -->
   
   <div class="box">
-       <p class="title">Total stored bytes (last 7 days)</p>
+       <p class="title">Stored Bytes (GB / Last 7 days)</p>
          <img src="{$graph_stored_bytes}" alt="" />
   </div> <!-- end div box -->