Преглед изворни кода

Fix sleep - OpenWrt busybox doesn't support decimals

Luis Rosales пре 2 месеци
родитељ
комит
0539de2df0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      package/src/client2server-unified.lua

+ 1 - 1
package/src/client2server-unified.lua

@@ -650,7 +650,7 @@ local function scheduler()
             if coroutine.status(co) == "suspended" then
                 local _, delay = coroutine.resume(co)
                 -- Small stagger to avoid spikes
-                if delay then os.execute("sleep 0.1") end
+                if delay then os.execute("sleep 1") end
             end
         end