From 699b7f01bf4e4450584795a1ecf954dbce7cdc89 Mon Sep 17 00:00:00 2001 From: DeYu Liu Date: Tue, 6 Jul 2021 13:37:53 +0800 Subject: luci-app-ddns: fix next_update error * Fix the error that next_update sometimes display Verify Signed-off-by: DeYu Liu --- applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-ddns/root/usr/libexec/rpcd') diff --git a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns index 22abcf4251..653e63c16a 100755 --- a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns +++ b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns @@ -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 -- cgit v1.2.3