These two bugs are in 3.6.1 and 3.7.2
Might reflect changes in php
--- cluster_view.php.orig	2016-06-08 09:11:30.000000000 -0400
+++ cluster_view.php	2020-07-10 12:01:29.390551174 -0400
@@ -23,7 +23,7 @@
 }
 
 function get_picker_metrics($metrics, $reports, $gweb_root, $graph_engine) {
-  $context_metrics = "";
+  $context_metrics = [];
   if (count($metrics)) {
     foreach ($metrics as $host_metrics) {
       foreach ($host_metrics as $metric_name => $metric_value) {
@@ -341,7 +341,7 @@
     // If it put cells in an overflow list since that one is hidden by default
     if ($max_graphs > 0 and $i > $max_graphs ) {
       $overflow_list[$host]["metric_image"] = $cell;
-      if (! ($overflow_counter++ % $conf['hostcols']) ) {
+      if ($conf['hostcols']>0 and ! ($overflow_counter++ % $conf['hostcols']) ) {
         $overflow_list[$host]["br"] = "</tr><tr>";
       } else {
         $overflow_list[$host]["br"] = "";
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to