From 43d534acd7a0399e54495a17117d94fe78ec6d7d Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 16 Dec 2012 13:21:39 +0100 Subject: type: add debug option "cmd" create a commandline rrdtool command --- type/Default.class.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'type') diff --git a/type/Default.class.php b/type/Default.class.php index 0b6601e..fd562b4 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -161,6 +161,12 @@ class Type_Default { header("content-type: image/png"); $graphdata = implode(' ', $graphdata); echo `$graphdata`; + } elseif ($debug == 'cmd') { + print '
';
+			foreach ($graphdata as $d) {
+				printf("%s \\\n", $d);
+			}
+			print '
'; } else { print '
';
 			print_r($graphdata);
-- 
cgit v1.1