luci-app-ddns: fix next_update error

* Fix the error that next_update sometimes display Verify

Signed-off-by: DeYu Liu <vito_sam@outlook.com>
This commit is contained in:
DeYu Liu 2021-07-06 13:37:53 +08:00
parent cef330a1c8
commit 699b7f01bf

View file

@ -120,7 +120,7 @@ local methods = {
next_update = epoch2date(epoch + force_seconds + check_seconds)
end
if pid > 0 and ( last_update + force_seconds - uptime ) <= 0 then
if pid > 0 and ( last_update + force_seconds + check_seconds - uptime ) <= 0 then
next_update = "Verify"
-- run once