Hi all,
Another patch for the cluster_view, to display the units in the graphs
(now displaying min - max)
This was somehow set in the host_view, but not in the cluster_view.
Kind regards,
Ramon.
--- ../ganglia-old/cluster_view.php Mon Nov 10 19:54:16 2003
+++ ./cluster_view.php Fri Dec 17 16:53:35 2004
@@ -150,6 +150,12 @@
"m=$metricname&";
$graphargs .=
"z=small&c=$cluster_url&h=$host_url&l=$load_color"
."&v=$val[VAL]&x=$max&n=$min&r=$range&st=$cluster[LOCALTIME]";
+ # Adding units to graph 2003 by Jason Smith <[EMAIL
PROTECTED]>.
+ if ($val[UNITS]) {
+ $encodeUnits = rawurlencode($val[UNITS]);
+ $graphargs .= "&vl=$encodeUnits";
+ }
+
}
}