added labels to ps()

This commit is contained in:
Izaya 2017-08-04 09:05:25 +10:00
parent 67ecaec76e
commit 221d0fbd1b

View File

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