Quellcode durchsuchen

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 vor 2 Jahren
Ursprung
Commit
699b7f01bf
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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