From 0983c2f94ae59792b0fea7427f420a50e414552b Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 11 Nov 2009 11:56:14 +0000 Subject: [PATCH] add debug option to spit rrd data git-svn-id: http://www.observium.org/svn/observer/trunk@512 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/graph.php b/html/graph.php index d7f6078ab..bd1063b65 100644 --- a/html/graph.php +++ b/html/graph.php @@ -56,7 +56,7 @@ if($_GET['debug']) { } if($rrd_options) { -# echo("
".$config['rrdtool'] . " graph $graphfile $rrd_options");
+    if($_GET['debug']) { echo("
".$config['rrdtool'] . " graph $graphfile $rrd_options"); }
     $thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
     if(is_file($graphfile)) {
       header('Content-type: image/png');