general improvements to ocemu-heartbeat and sinit. for reasons.
This commit is contained in:
parent
22f9d7c299
commit
1eadd5ef3c
@ -3,6 +3,8 @@ s("heartbeat",function()
|
||||
while true do
|
||||
if _G.DEBUG then
|
||||
component.invoke(component.list("ocemu")(),"log","heartbeat:"..tostring(computer.uptime()))
|
||||
component.invoke(component.list("ocemu")(),"log",T.unpack(ev))
|
||||
component.invoke(component.list("ocemu")(),"log","processes:\n"..ps())
|
||||
end
|
||||
C.yield()
|
||||
end
|
||||
|
@ -2,7 +2,7 @@ s("init",function()
|
||||
local f=fopen("boot:/init.cfg","rb")
|
||||
write("")
|
||||
if f then
|
||||
c=freadall(f)
|
||||
local c=freadall(f)
|
||||
for l in c:gmatch("[^\n]+") do
|
||||
write("[init] "..l..": ")
|
||||
local pf=fload(l)
|
||||
|
Loading…
Reference in New Issue
Block a user