From a43cddb3344a1f0771890b97b0c4f1581c6e2c89 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 13 Sep 2022 13:36:23 +0200 Subject: [PATCH] fix serverload issues --- setup-scripts/serverload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/serverload.sh b/setup-scripts/serverload.sh index 6945bcb0..110a5981 100755 --- a/setup-scripts/serverload.sh +++ b/setup-scripts/serverload.sh @@ -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