From: DeYu Liu Date: Tue, 6 Jul 2021 05:37:53 +0000 (+0800) Subject: luci-app-ddns: fix next_update error X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=699b7f01bf4e4450584795a1ecf954dbce7cdc89;p=openwrt-luci.git luci-app-ddns: fix next_update error * Fix the error that next_update sometimes display Verify Signed-off-by: DeYu Liu --- 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