updates and cleanups. fixed mysql query

git-svn-id: http://www.observium.org/svn/observer/trunk@514 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-11-11 16:02:58 +00:00
parent 070af9f831
commit 8040941635
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -91,7 +91,8 @@ function shorthost($hostname, $len=16) {
function rrdtool_update($rrdfile, $rrdupdate) {
global $config;
echo($config['rrdtool'] . " update $rrdfile $rrdupdate \n");
global $debug;
if($debug) { echo($config['rrdtool'] . " update $rrdfile $rrdupdate \n"); }
return shell_exec($config['rrdtool'] . " update $rrdfile $rrdupdate");
}