diff options
Diffstat (limited to 'i3blocks-cpuload.sh')
-rwxr-xr-x | i3blocks-cpuload.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/i3blocks-cpuload.sh b/i3blocks-cpuload.sh index acd6eb0..226e224 100755 --- a/i3blocks-cpuload.sh +++ b/i3blocks-cpuload.sh @@ -9,10 +9,11 @@ cpu_count=$(sysctl -n hw.ncpu) avg_load=$(sysctl vm.loadavg | cut -w -f3) percent=$(echo "result = $avg_load / $cpu_count * 100; scale=0; result / 1" | bc -l) -mhz=$(sysctl -n dev.cpu.0.freq) -ghz=$(echo "result = $mhz / 1000; scale=1; result / 1" | bc -l) +#mhz=$(sysctl -n dev.cpu.0.freq) +#ghz=$(echo "result = $mhz / 1000; scale=1; result / 1" | bc -l) [ $percent -lt $low ] && printf $icon_low [ $percent -ge $low ] && [ $percent -lt $high ] && printf $icon_mid [ $percent -ge $high ] && printf $icon_high -printf "%s%% %s GHz\n" $percent $ghz +#printf "%s%% %s GHz\n" $percent $ghz +printf "%s%%\n" $percent |