aboutsummaryrefslogtreecommitdiff
path: root/bin/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cpu')
-rwxr-xr-xbin/cpu3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/cpu b/bin/cpu
index a0a4511..9288584 100755
--- a/bin/cpu
+++ b/bin/cpu
@@ -2,7 +2,8 @@
# checks the amount of CPU being used
cpu() {
- cpu="$(cat /proc/loadavg | awk '{print $3}'|cut -f 1 -d ".")"
+ #cpu="$(cat /proc/loadavg | awk '{print $3}'|cut -f 1 -d ".")"
+ cpu="$(iostat | awk '{print $1}' | grep '[0-9]')"
printf "﬙ %.0f%%" "$cpu"
}