fix serverload issues
This commit is contained in:
parent
519a940c75
commit
a43cddb334
|
@ -33,7 +33,7 @@ fi
|
||||||
# Write the output in an infinite loop.
|
# Write the output in an infinite loop.
|
||||||
while true; do
|
while true; do
|
||||||
# CPU usage
|
# CPU usage
|
||||||
cpu=$(echo $[100-$(vmstat 1 2|tail -1|awk '{print $15}')])
|
cpu=$((100-$(vmstat 1 2|tail -1|awk '{print $15}')))
|
||||||
sed -i "1iCPU: ${cpu}" $logfile
|
sed -i "1iCPU: ${cpu}" $logfile
|
||||||
|
|
||||||
# Disk Usage
|
# Disk Usage
|
||||||
|
|
Reference in New Issue