Commit 708f9e4f authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

bugfix: removed output from script when run in "silent" mode, fix sql

statement typo
parent 8affc067
......@@ -314,8 +314,10 @@ if ($getNodeInfo) {
//if there's nothing really there just skip to the next IP
if (!$result || empty($result)) {
//$host = wxc_resolveIP($ipAddr);
wxc_echoWithColor("The json file is empty for node: " . $ipAddr . " " . wxc_resolveIP($ipAddr) . "\n", "red");
echo "\n";
if($testNodePolling) {
wxc_echoWithColor("The json file is empty for node: " . $ipAddr . " " . wxc_resolveIP($ipAddr) . "\n", "red");
echo "\n";
}
continue;
}
......
......@@ -700,7 +700,7 @@ function wxc_checkOldNodes() {
$oldNodeQuery = "DELETE FROM node_info WHERE TIMESTAMPDIFF(DAY, node_info.last_seen, NOW()) > " . $GLOBALS['USER_SETTINGS']['node_expire_interval'];
wxc_putMySql($oldNodeQuery);
//also just remove some old nodes that may still be present in the DB (from very old versions of these scripts)
wxc_putMySql("delete from node_info where node.info.last_seen is NULL");
wxc_putMySql("delete from node_info where node_info.last_seen is NULL");
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment