From 933372ff47dd9d4848963d2709938ff5dd427dc6 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Thu, 20 Jul 2017 08:11:02 +0200 Subject: [PATCH] work-around to re-format graphs temporarily --- monitorix.cgi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/monitorix.cgi b/monitorix.cgi index 36861d5..feb2edc 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -181,6 +181,9 @@ sub graph_header { push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); + if(lc($config{enable_parallelizing} || "") ne "y") { + print @output; + } return @output; } @@ -189,6 +192,9 @@ sub graph_footer { push(@output, " \n"); push(@output, "\n"); + if(lc($config{enable_parallelizing} || "") ne "y") { + print @output; + } return @output; } @@ -574,10 +580,10 @@ if($mode eq "localhost") { while($children--) { waitpid(-1, 0); # wait for all children } -# foreach (split(',', $config{graph_name})) { -# my $gn = trim($_); + foreach (split(',', $config{graph_name})) { + my $gn = trim($_); # print @{$outputs{$gn}} if $outputs{$gn}; -# } + } } } elsif($mode eq "multihost") {