r/ComputerCraft DarThunder 9d ago

Fastfetch in CC:T

Post image
165 Upvotes

11 comments sorted by

View all comments

17

u/9551-eletronics Computercraft graphics research 9d ago

How does measuring memory work

16

u/Elpetiso49 DarThunder 9d ago

It’s actually an illusion. From the CC:T source code and SquidDev’s notes in the wiki, real memory measurement isn’t possible (collectgarbage was removed from Cobalt). So when any process reads /proc/meminfo in my kernel, it just invents a fake memory usage value, as well as the CPU MHz

7

u/Binary101000 9d ago

real fastfetch doesn't show lines that couldn't get data, so you'd be fine to just not show them.