diff --git a/modules/applications/shutil.lua b/modules/applications/shutil.lua index 7ad4641..2c7d44e 100644 --- a/modules/applications/shutil.lua +++ b/modules/applications/shutil.lua @@ -10,3 +10,10 @@ end function mem() return "Total:\t"..tostring(computer.totalMemory()/1024).."K\nFree:\t"..tostring(computer.freeMemory()/1024).."K\nUsed:\t"..tostring((computer.totalMemory()-computer.freeMemory())/1024).."K" end +function components() + s="" + for t,a in component.list() do + s=s..TS(t).."\t"..TS(a).."\n" + end + return s +end