diff options
Diffstat (limited to '.config/lemonblocks/modules/cpu_load.sh')
-rwxr-xr-x | .config/lemonblocks/modules/cpu_load.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/.config/lemonblocks/modules/cpu_load.sh b/.config/lemonblocks/modules/cpu_load.sh deleted file mode 100755 index 1a677a9..0000000 --- a/.config/lemonblocks/modules/cpu_load.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -read cpu a b c previdle rest < /proc/stat -prevtotal=$((a+b+c+previdle)) -sleep 0.5 -read cpu a b c idle rest < /proc/stat -total=$((a+b+c+idle)) -cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) )) - -printf " CPU:%s%% " $cpu |