diff --git a/modules/lib/shutil.lua b/modules/lib/shutil.lua index e561c85..6470187 100644 --- a/modules/lib/shutil.lua +++ b/modules/lib/shutil.lua @@ -18,7 +18,9 @@ function ps(f) end end function mem() - print("Total:\t"..tostring(math.floor(computer.totalMemory()/1024)).."K") - print("Free: \t"..tostring(math.floor(computer.freeMemory()/1024)).."K") - print("Used: \t"..tostring(math.floor((computer.totalMemory()-computer.freeMemory())/1024)).."K") + print(" \tTotal\tFree\tUsed") + io.write("Mem\t") + io.write(tostring(math.floor(computer.totalMemory()/1024)).."K\t") + io.write(tostring(math.floor(computer.freeMemory()/1024)).."K\t") + print(tostring(math.floor((computer.totalMemory()-computer.freeMemory())/1024)).."K\t") end