From: <vv...@us...> - 2011-04-12 01:35:32
|
Revision: 2566 http://ganglia.svn.sourceforge.net/ganglia/?rev=2566&view=rev Author: vvuksan Date: 2011-04-12 01:35:25 +0000 (Tue, 12 Apr 2011) Log Message: ----------- Add an additional space so that regex works nicely with single metric output Modified Paths: -------------- branches/monitor-web-2.0/graph.php Modified: branches/monitor-web-2.0/graph.php =================================================================== --- branches/monitor-web-2.0/graph.php 2011-04-12 01:22:04 UTC (rev 2565) +++ branches/monitor-web-2.0/graph.php 2011-04-12 01:35:25 UTC (rev 2566) @@ -411,7 +411,7 @@ $rrdtool_graph_args = ""; // First find RRDtool DEFs by parsing $rrdtool_graph['series'] - preg_match_all("| DEF:(.*):AVERAGE|U", $rrdtool_graph['series'], $matches); + preg_match_all("| DEF:(.*):AVERAGE|U", " " . $rrdtool_graph['series'], $matches); foreach ( $matches[0] as $key => $value ) { if ( preg_match("/(DEF:\')(.*)(\'=\')(.*)\/(.*)\/(.*)\/(.*)(\.rrd)/", $value, $out ) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |