OC-PsychOS2/exec/free.lua

3 lines
209 B
Lua
Raw Normal View History

2018-11-03 03:05:41 +11:00
print("Total Used Free")
2019-11-19 17:19:02 +11:00
print(string.format("%4iK %4iK %4iK",math.floor(computer.totalMemory()/1024),math.floor((computer.totalMemory()-computer.freeMemory())/1024),math.floor(computer.freeMemory()/1024)))