cleanups, small fixes and remove test-*php from the root

git-svn-id: http://www.observium.org/svn/observer/trunk@1998 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-31 10:51:02 +00:00
parent 1c524f0349
commit bb4746d4d0
23 changed files with 108 additions and 243 deletions
+4 -4
View File
@@ -7,14 +7,13 @@ function rrdtool_update($rrdfile, $rrdupdate)
function rrdtool_create($rrdfile, $rrdupdate)
{
global $config; global $debug;
global $config, $debug;
$command = $config['rrdtool'] . " create $rrdfile $rrdupdate";
if ($debug) { echo($command."\n"); }
return shell_exec($command);
}
function rrdtool_fetch($rrdfile, $rrdupdate)
@@ -39,7 +38,7 @@ function rrdtool_lastupdate($rrdfile, $rrdupdate)
function rrdtool($command, $file, $options)
{
global $config; global $debug;
global $config, $debug;
$command = $config['rrdtool'] . " $command $file $options";
if ($config['rrdcached'])
@@ -48,7 +47,8 @@ function rrdtool($command, $file, $options)
}
if ($debug) { echo($command."\n"); }
return shell_exec($command);
}
?>
?>