summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-cpu
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-18 10:46:30 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-18 10:46:30 +0200
commit9555aadb15412b659da78060600d0a724a975bd2 (patch)
tree570b711f3c567454a7678f2ea798bab61dd25ed5 /.local/bin/status/sb-cpu
parentcleaner (diff)
downloaddotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.gz
dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.bz2
dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.xz
dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.tar.zst
dotfiles-bsd-9555aadb15412b659da78060600d0a724a975bd2.zip
added disks
Diffstat (limited to '.local/bin/status/sb-cpu')
-rwxr-xr-x.local/bin/status/sb-cpu2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/status/sb-cpu b/.local/bin/status/sb-cpu
index 3b68cf4..8ad6dfb 100755
--- a/.local/bin/status/sb-cpu
+++ b/.local/bin/status/sb-cpu
@@ -7,7 +7,7 @@ else
ncpu=$(sysctl -n hw.ncpu | tee $ncpu_file)
fi
-printf " "
+printf " "
# for i in $(top -P -d 1 | sed -n 3,${topline}p | rev | cut -d' ' -f2 | rev | cut -d'.' -f1 | awk '{print (100 - $1)}'); do
for i in $(top -P -d 2 -s 0.2 | grep '^CPU' | tail -n$ncpu | sed '{s/% idle$//;s/.*[[:blank:]]//;s/\..*//;s/^/100 - /;}' | bc); do
case $(echo $i / 12.5 | bc) in