minor fixes

This commit is contained in:
osmarks 2020-08-23 21:59:58 +01:00
parent adf7567b86
commit 9cc8df3480

View File

@ -19,7 +19,7 @@ local function time()
return ccemuxnanoTime() / 1e9
elseif osepoch then
return osepoch "utc" / 1000 else
return os.clock() end
return osclock() end
end
local processes = {}
@ -250,10 +250,10 @@ end
-- Run main event loop
local function run_loop()
while true do
local ev = {coroutineyield()}
for ID, proc in pairs(processes) do
tick(proc, ev)
end
local ev = {coroutineyield()}
for ID, proc in pairs(processes) do
tick(proc, ev)
end
end
end