fix serverload issues

This commit is contained in:
Karol Wypchlo 2022-09-13 13:36:23 +02:00
parent 519a940c75
commit a43cddb334
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 1 additions and 1 deletions

View File

@ -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