From 1f1e84c344ed1404635b2111df2d3e0e01b915cb Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Mon, 9 May 2011 17:06:23 +0200 Subject: [PATCH] bacula-web: Renamed GetPoolsStatistics() function to CountVolumesByPool() in includes/bweb.inc.php --- gui/bacula-web/includes/bweb.inc.php | 2 +- gui/bacula-web/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' ); -- 2.39.5