From 0f9bbf914bdd64c57effda954fa454f5bc8472fd Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 16 Aug 2022 22:10:46 +0200 Subject: updat --- .local/bin/status/sb-cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/status/sb-cpu') diff --git a/.local/bin/status/sb-cpu b/.local/bin/status/sb-cpu index 7ff7aca..f6769a1 100755 --- a/.local/bin/status/sb-cpu +++ b/.local/bin/status/sb-cpu @@ -3,6 +3,7 @@ ncpu=$(sysctl -n hw.ncpu) ncpu=$((ncpu - 1)) cpu="" +printf " " for i in $(seq 0 $ncpu); do case $(sysctl -n dev.cpu.$i.cx_usage | cut -d'.' -f1 | awk '{printf "%d\n", $1 / 12.5}') in "0") printf "▁";; @@ -16,4 +17,3 @@ for i in $(seq 0 $ncpu); do "8") printf "█";; esac; done -# top | sed -n 3p | awk '{print $10}' | cut -d '.' -f1 | awk '{print " " 100 - $1 "%"}' -- cgit v1.2.3