From: Florian G. <re...@us...> - 2007-11-26 00:01:13
|
Update of /cvsroot/perfparse/_perfparse-phpgui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29256 Modified Files: perfparse.php Log Message: fixed multipe metric selection Index: perfparse.php =================================================================== RCS file: /cvsroot/perfparse/_perfparse-phpgui/perfparse.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** perfparse.php 10 Nov 2007 21:03:32 -0000 1.58 --- perfparse.php 26 Nov 2007 00:01:16 -0000 1.59 *************** *** 190,200 **** foreach($servicearray as $serviceid => $metricarray) { $service_description=$metricarray['service_description']; ! //$diffmetrics[$service_description]['service_id']=$serviceid; ! foreach($metricarray as $metricid=>$metric ) { ! if($metricid != 'service_description'){ ! // $diffmetrics[$service_description][$metric]["hosts"][$hostId]=$hidnames[$hostId]; ! $diffmetrics[$service_description][$metric]["metric_ids"][]=$metricid; ! $diffmetrics[$service_description][$metric]["count"]=count($diffmetrics[$service_description][$metric]["metric_ids"]); ! } } } --- 190,196 ---- foreach($servicearray as $serviceid => $metricarray) { $service_description=$metricarray['service_description']; ! foreach($metricarray['metrics'] as $metricid=>$metric ) { ! $diffmetrics[$service_description][$metric]["metric_ids"][]=$metricid; ! $diffmetrics[$service_description][$metric]["count"]=count($diffmetrics[$service_description][$metric]["metric_ids"]); } } |