From d23a25613dae8412f559e1de9097b0b5e925b0c3 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 9 Nov 2019 13:48:50 +1100 Subject: [PATCH] made ps display the pid correctly --- exec/ps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/ps.lua b/exec/ps.lua index f103a5d..c006080 100644 --- a/exec/ps.lua +++ b/exec/ps.lua @@ -1,5 +1,5 @@ print("PID# Parent | Name") for k,v in pairs(os.tasks()) do local t = os.taskInfo(v) - print(string.format("%4d %4d | %s",k,t.parent,t.name)) + print(string.format("%4d %4d | %s",v,t.parent,t.name)) end