luci-app-ddns: fix next_update error 5171/head
authorDeYu Liu <vito_sam@outlook.com>
Tue, 6 Jul 2021 05:37:53 +0000 (13:37 +0800)
committerDeYu Liu <vito_sam@outlook.com>
Tue, 6 Jul 2021 05:49:36 +0000 (13:49 +0800)
* Fix the error that next_update sometimes display Verify

Signed-off-by: DeYu Liu <vito_sam@outlook.com>
applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns

index 22abcf4251328319ac494c9f0446e1d977e6713d..653e63c16ad1cf5f4783b2856584164c82a55261 100755 (executable)
@@ -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