This commit is contained in:
madmaurice 2015-06-19 05:18:27 +02:00
parent 2a188f2c64
commit ed4d81778a

6
scripts/cpustat.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
while true; do
idle=$(mpstat 2 1 | tail -n 1 | awk '{print int($12)}')
echo $[ 100 - $idle ]
done | stag -t "CPU usage" -s 0,100 -w 1