[prev in list] [next in list] [prev in thread] [next in thread]
List: ganglia-general
Subject: [Ganglia-general] cluster_view.php bugs
From: Steven Dick <kg4ydw () gmail ! com>
Date: 2020-07-10 16:06:09
Message-ID: CAGrK68=7aJJEt8je=YvxPBrct8Nu-pUNhY9V0Y-R8sgMo5f0Hw () mail ! gmail ! com
[Download RAW message or body]
These two bugs are in 3.6.1 and 3.7.2
Might reflect changes in php
["ganglia-web-3.7.2.patch" (text/x-patch)]
--- 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic