fix serverload issues
This commit is contained in:
parent
519a940c75
commit
a43cddb334
|
@ -33,7 +33,7 @@ fi
|
|||
# Write the output in an infinite loop.
|
||||
while true; do
|
||||
# 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
|
||||
|
||||
# Disk Usage
|
||||
|
|
Reference in New Issue