From: Davide Franco Date: Mon, 9 May 2011 15:06:23 +0000 (+0200) Subject: bacula-web: Renamed GetPoolsStatistics() function to CountVolumesByPool() in includes... X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd78cdd8c7b55ad8c4ebf478cad30e4b16f09db1;p=bacula%2Fbacula bacula-web: Renamed GetPoolsStatistics() function to CountVolumesByPool() in includes/bweb.inc.php --- diff --git a/gui/bacula-web/includes/bweb.inc.php b/gui/bacula-web/includes/bweb.inc.php index cca09039c2..d34dd7c6ad 100644 --- a/gui/bacula-web/includes/bweb.inc.php +++ b/gui/bacula-web/includes/bweb.inc.php @@ -505,7 +505,7 @@ class Bweb extends DB { } } // end function GetJobsStatistics() - public function GetPoolsStatistics( $pools ) + public function CountVolumesByPool( $pools ) { foreach( $pools as $pool_name => $pool ) { //var_dump( $pool ); diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index f4d1ad4560..6e190bf409 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -102,7 +102,7 @@ $graph = new BGraph( "graph1.png" ); $pools = $dbSql->Get_Pools_List(); foreach( $pools as $pool ) { - array_push( $data, $dbSql->GetPoolsStatistics( $pool ) ); + array_push( $data, $dbSql->CountVolumesByPool( $pool ) ); } $graph->SetData( $data, 'pie', 'text-data-single' );