This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
|
local running, total = fs.readfile('/proc/loadavg'):match('^[^ ]+ [^ ]+ [^ ]+ (%d+)/(%d+)')
|
|
|
|
return { running = tonumber(running), total = tonumber(total) }
|