cpustat
This commit is contained in:
parent
2a188f2c64
commit
ed4d81778a
1 changed files with 6 additions and 0 deletions
6
scripts/cpustat.sh
Executable file
6
scripts/cpustat.sh
Executable 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
|
Loading…
Reference in a new issue