03-12-2019, 12:31 AM
(This post was last modified: 03-12-2019, 12:33 AM by Tim Curtis.
Edit Reason: etc
)
It's actually a value from the TOP cmd. It provides a representation of overall processor utilization. I'll leave it up to you to research how CPU utilization is represented in a multicore CPU.
Below is the command that moodeutl uses (/usr/local/bin/moodeutl.php)
-Tim
Below is the command that moodeutl uses (/usr/local/bin/moodeutl.php)
Code:
top -bn 2 -d 0.75 | grep 'Cpu(s)' | tail -n 1 | awk '{print $2 + $4 + $6}'
-Tim