Public feed #727176

Hawson

public text v1 · immutable
Raw Edit
·published 2007-10-05 20:30 UTC
rendered paste body
--- web/cluster_view.php        2007-10-03 00:48:43.000000000 -0400
+++ web-patched/cluster_view.php        2007-10-05 16:23:52.000000000 -0400
@@ -211,10 +211,11 @@
             else
                {
                   $load_color = load_color($host_load[$host]);
+                  $size = isset($clustergraphsize) ? $clustergraphsize : 'small';
                   $graphargs = (isset($reports[$metricname]) and
                                 $reports[$metricname]) ?
                         "g=$metricname&" : "m=$metricname&";
-                  $graphargs .= "z=small&c=$cluster_url&h=$host_url"
+                  $graphargs .= "z=$size&c=$cluster_url&h=$host_url"
                      ."&l=$load_color&v=$val[VAL]&x=$max&n=$min"
                      ."&r=$range&st=$cluster[LOCALTIME]";
                }
--- web/conf.php  2007-10-03 00:48:43.000000000 -0400
+++ web-patched/conf.php        2007-10-05 16:23:52.000000000 -0400
@@ -10,7 +10,7 @@
 # templates that you want to use. Templates are like a skin for the
 # site that can alter its look and feel.
 #
-$template_name = "default";
+$template_name = "saturn";

 #
 # If you installed gmetad in a directory other than the default
--- web/get_context.php 2007-10-03 00:48:43.000000000 -0400
+++ web-patched/get_context.php 2007-10-05 16:23:52.000000000 -0400
@@ -37,6 +37,9 @@
 # The direction we are travelling in the grid tree
 $gridwalk = isset($_GET["gw"]) ?
        escapeshellcmd($_GET["gw"]) : NULL;
+# Size of the host graphs in cluster view
+$clustergraphsize = isset($_GET["z"]) ?
+       escapeshellcmd($_GET["z"]) : NULL;
 # A stack of grid parents. Prefer a GET variable, default to cookie.
 if (isset($_GET["gs"]) and $_GET["gs"])
       $gridstack = explode(">", rawurldecode($_GET["gs"]));
--- web/templates/default/cluster_view.tpl  2007-10-05 16:23:52.000000000 -0400
+++ web-patched/templates/default/cluster_view.tpl   2007-10-05 16:23:52.000000000 -0400
@@ -66,6 +66,12 @@
   |
    <FONT SIZE="-1">
    Columns&nbsp;&nbsp;{cols_menu}
+   Size: <SELECT NAME="z" OnChange="ganglia_form.submit();">
+    <OPTION VALUE="small">s
+    <OPTION VALUE="medium">m
+    <OPTION VALUE="large">l
+    <OPTION VALUE="xlarge">xl
+    </SELECT>
    </FONT>
   </TD>
 </TR>