1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix time diff check

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-04-16 16:56:11 +02:00
parent 8c46b23839
commit 94ced7e500

View file

@ -755,7 +755,7 @@ function interfaces_status()
mArray.openmptcprouter["ss_traffic"] = vpsinfo.shadowsocks.traffic or ""
end
if vpsinfo.vps.time ~= "" then
if os.time() - vpsinfo.vps.time > 10 then
if math.abs(os.time() - vpsinfo.vps.time) > 10 then
mArray.openmptcprouter["vps_time_accurate"] = false
else
mArray.openmptcprouter["vps_time_accurate"] = true