made ps() deal with when a task dies

This commit is contained in:
Izaya 2017-08-28 16:04:26 +10:00
parent 6763791189
commit 862f1dcd30
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ end
function ps(f)
local f=f or ""
print("PID\tName")
for k,v in ipairs(os.tasks()) do
for k,v in pairs(os.tasks()) do
if v:find(f) then
print(tostring(k).."\t"..tostring(v))
end