X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=gui%2Fbacula-web%2Findex.php;h=b459a08a4c768ebf195b3999b6a2e7001b0eb452;hb=fb684092f93108e0cccf3b2b0f383767ea9d28c4;hp=806bc17183a0d56dc3e0680771dc1a76cc889748;hpb=f50a5e7fca3de793347a67458b438a9e268c02d7;p=bacula%2Fbacula diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 806bc17183..b459a08a4c 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -1,7 +1,8 @@ tpl->assign( "dbs", $dbSql->Get_Nb_Catalogs() ); +//$dbSql->tpl->assign( "dbs", $dbSql->bwcfg->Count_Catalogs() ); // Assign dbs /* if ( count($dbSql->dbs) >1 ) { @@ -30,6 +29,9 @@ if ( count($dbSql->dbs) >1 ) { $smarty->assign("dbs_now", $_SESSION['DATABASE']); } */ +// Catalog count +$catalog_nb = $dbSql->catalog_nb; +$dbSql->tpl->assign( 'catalog_nb', $catalog_nb ); // Stored files number $totalfiles = $dbSql->GetStoredFiles( ALL ); @@ -40,11 +42,11 @@ $dbSql->tpl->assign('database_size', $dbSql->GetDbSize()); // Overall stored bytes $result = $dbSql->GetStoredBytes( ALL ); -$dbSql->tpl->assign('stored_bytes', $dbSql->human_file_size($result['stored_bytes']) ); +$dbSql->tpl->assign('stored_bytes', Utils::Get_Human_Size( $result['stored_bytes'] ) ); // Total stored bytes since last 24 hours $result = $dbSql->GetStoredBytes( LAST_DAY ); -$dbSql->tpl->assign('bytes_last', $dbSql->human_file_size($result['stored_bytes']) ); +$dbSql->tpl->assign('bytes_last', Utils::Get_Human_Size( $result['stored_bytes'] ) ); // Total stored files since last 24 hours $files_last = $dbSql->GetStoredFiles( LAST_DAY ); @@ -101,7 +103,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' );