Commit e8947ee9 authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

BugFix get-map-info wxc_functions

Fixed the "ignored nodes" check. Nodes and devices that get ignored due
to 404/no route to host/connection refused errors, will now be properly,
and temporarily skipped over by the polling script.
parent a7d10534
......@@ -236,6 +236,9 @@ $no_expire = $USER_SETTINGS['expire_old_nodes'];
if ($do_sql && $no_expire) {
wxc_checkOldNodes();
}
if ($do_sql) {
wxc_removeIgnoredNodes();
}
$resolvedHostname = "";
$nodeLocationFixed = 0;
......
......@@ -503,6 +503,8 @@ function wxc_checkOldNodes() {
wxc_putMySql($oldNodeQuery);
}
}
}
function wxc_removeIgnoredNodes() {
//wxc_getMySql("DELETE FROM node_info WHERE TIMESTAMPDIFF(DAY, node_info.last_seen, NOW()) > 30");
//return mysqli_fetch_all($theQuery);
......
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