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 = util.readline(io.open('/proc/loadavg')):match('^[^ ]+ [^ ]+ [^ ]+ (%d+)/(%d+)')
|
|
|
|
return { running = tonumber(running), total = tonumber(total) }
|