changed some formatting and stuff for ps() and mem()
This commit is contained in:
parent
c5d0662a7c
commit
c10058e490
@ -1,12 +1,12 @@
|
|||||||
function ps()
|
function ps()
|
||||||
for k,v in pairs(tT) do
|
for k,v in pairs(tT) do
|
||||||
write("pid: "..tostring(k)..", process name: "..tostring(v[1])..", env={")
|
write("pid: "..tostring(k).."\tname: "..tostring(v[1]).."\tenv={")
|
||||||
for l,w in pairs(v[3]) do write(tostring(l).." = "..tostring(w)..", ") end
|
for l,w in pairs(v[3]) do write(tostring(l).." = "..tostring(w)..", ") end
|
||||||
print("}")
|
print("}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function mem()
|
function mem()
|
||||||
print("Total: "..tostring(computer.totalMemory()/1024).."K")
|
print("Total:\t"..tostring(computer.totalMemory()/1024).."K")
|
||||||
print("Free: "..tostring(computer.freeMemory()/1024).."K")
|
print("Free:\t"..tostring(computer.freeMemory()/1024).."K")
|
||||||
print("Used: "..tostring((computer.totalMemory()-computer.freeMemory())/1024).."K")
|
print("Used:\t"..tostring((computer.totalMemory()-computer.freeMemory())/1024).."K")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user