OC-PsychOS2/exec/free.lua
2018-11-03 03:05:41 +11:00

3 lines
197 B
Lua

print("Total Used Free")
print(string.format("%4dK %4dK %4dK",computer.totalMemory()/1024,math.floor((computer.totalMemory()-computer.freeMemory())/1024),math.floor(computer.freeMemory()/1024)))