浏览代码

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 年之前
父节点
当前提交
699b7f01bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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