aboutsummaryrefslogtreecommitdiff
path: root/tests/s.lua
diff options
context:
space:
mode:
authorame <[email protected]>2024-01-29 12:31:10 -0600
committerame <[email protected]>2024-01-29 12:31:10 -0600
commite1c171c9c87cf80578a262310510cf6958066b47 (patch)
treefaa52e4b7bb7cdff545bd6a8ed7f8e095c4239ea /tests/s.lua
parent575e22afdc316bd0d3b2cedb10d00d8b50b3b5dd (diff)
owo whats this? working code???
Diffstat (limited to 'tests/s.lua')
-rw-r--r--tests/s.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/s.lua b/tests/s.lua
index 5adc783..a543ff0 100644
--- a/tests/s.lua
+++ b/tests/s.lua
@@ -1,13 +1,15 @@
require "llib"
-function sleep (a)
+function _G.sleep (a)
local sec = tonumber(os.clock() + a);
while (os.clock() < sec) do
end
end
-for i=1,500 do
+for i=1,50 do
llib.net.spawn(function()
- --sleep(1)
+ local sec = tonumber(os.clock() + 1);
+ while (os.clock() < sec) do
+ end
print("hi")
end)
end