Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
229a3e6b
Commit
229a3e6b
authored
Sep 23, 2018
by
Eric - kg6wxc
Browse files
bugfix: typo and missing single quotes in wxc_functions.
wxc_checkOldNodes() function.
parent
cf42ebdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/wxc_functions.inc
View file @
229a3e6b
...
...
@@ -691,7 +691,7 @@ function wxc_checkOldNodes() {
$last_seen
=
$row
[
'last_seen'
];
$valuesArray
[]
=
"('
$wifi_mac_address
', '
$node
', '
$model
', '
$firmware_version
', '
$lat
', '
$lon
', '
$ssid
', '
$chanbw
', '
$api_version
', '
$board_id
',
'
$tunnel_installed
', '
$active_tunnel_count
', '
$channel
', '
$firmware_mfg
', '
$lan_ip
', '
$wlan_ip
',
$uptime
,
$loadavg
,
$services
, '
$last_seen
', NOW())"
;
'
$tunnel_installed
', '
$active_tunnel_count
', '
$channel
', '
$firmware_mfg
', '
$lan_ip
', '
$wlan_ip
',
'
$uptime
'
,
'
$loadavg
'
,
'
$services
'
, '
$last_seen
', NOW())"
;
}
if
(
$valuesArray
)
{
...
...
@@ -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_putMy
Ms
ql
(
"delete from node_info where node.info.last_seen is NULL"
);
wxc_putMy
S
ql
(
"delete from node_info where node.info.last_seen is NULL"
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment