Closed jotak closed 7 years ago
While I don't think loadavg counts as a CPU usage, this looks fine (other option would have been cut -d' ' -f 1 /proc/loadavg
cut -d' ' -f 1 /proc/loadavg
If you wanted CPU usage, then /proc/stat parsing would have been a good choice (but requires more than one pass)
While I don't think loadavg counts as a CPU usage, this looks fine (other option would have been
cut -d' ' -f 1 /proc/loadavg
If you wanted CPU usage, then /proc/stat parsing would have been a good choice (but requires more than one pass)