From 1e65da9fa98ad0a6dbc1436c20c854908ce4a713 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 1 Oct 2011 19:29:10 +0000 Subject: [PATCH] revert to old rrd creation method for the time being (don't lose any speed here anyways) git-svn-id: http://www.observium.org/svn/observer/trunk@2633 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/rrdtool.inc.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/rrdtool.inc.php b/includes/rrdtool.inc.php index b5c8164ea..40a7cd4ea 100644 --- a/includes/rrdtool.inc.php +++ b/includes/rrdtool.inc.php @@ -178,7 +178,14 @@ function rrdtool($command, $filename, $options) function rrdtool_create($filename, $options) { - return rrdtool("create", $filename, $options); + + global $config; global $debug; + $command = $config['rrdtool'] . " create $filename $options"; + if ($debug) { echo($command."\n"); } + + return shell_exec($command); + +# return rrdtool("create", $filename, $options); } function rrdtool_update($filename, $options)