Created
May 22, 2012 12:23
-
-
Save ptitfred/2768733 to your computer and use it in GitHub Desktop.
Expresses the load relative to processors count (in percents)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/printf %0.f%%\\n $(echo $(cat /proc/loadavg | cut -d" " -f1) / $(grep -c processor /proc/cpuinfo) "* 100" | bc -l) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment