forked from osmarks/potatOS
minor fixes
This commit is contained in:
parent
adf7567b86
commit
9cc8df3480
@ -19,7 +19,7 @@ local function time()
|
|||||||
return ccemuxnanoTime() / 1e9
|
return ccemuxnanoTime() / 1e9
|
||||||
elseif osepoch then
|
elseif osepoch then
|
||||||
return osepoch "utc" / 1000 else
|
return osepoch "utc" / 1000 else
|
||||||
return os.clock() end
|
return osclock() end
|
||||||
end
|
end
|
||||||
|
|
||||||
local processes = {}
|
local processes = {}
|
||||||
@ -250,10 +250,10 @@ end
|
|||||||
-- Run main event loop
|
-- Run main event loop
|
||||||
local function run_loop()
|
local function run_loop()
|
||||||
while true do
|
while true do
|
||||||
local ev = {coroutineyield()}
|
local ev = {coroutineyield()}
|
||||||
for ID, proc in pairs(processes) do
|
for ID, proc in pairs(processes) do
|
||||||
tick(proc, ev)
|
tick(proc, ev)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user