Browse Source

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>

DeYu Liu 2 years ago
parent
commit
699b7f01bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns

+ 1 - 1
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