My dotfiles utilizing Chezmoi for management https://www.chezmoi.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

7 lines
372 B

# Show current system load average and what the max load average is for your system (max = full system resource utilization)
function systemload() {
loadAverage=$(uptime | cut -d',' -f4 | grep -o "[0-9]*\.[0-9]*$")
processors=$(cat /proc/cpuinfo | grep processor | tail -n1 | awk '{ print $3 }')
let processors=$processors+1
echo "$loadAverage ($processors.00 max)"
}