From d5fd9c57ec4f16cd04dd4ed0f22031d03a995da9 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 29 Nov 2022 22:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dshell=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/otask.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/otask.sh b/shell/otask.sh index 95caf185..9f70c729 100644 --- a/shell/otask.sh +++ b/shell/otask.sh @@ -75,7 +75,7 @@ run_nohup() { } check_server() { - local top_result = $(top -b -n 1) + local top_result=$(top -b -n 1) cpu_use=$(echo $top_result | grep CPU | grep -v -E 'grep|PID' | awk '{print $2}' | cut -f 1 -d "%" | head -n 1) mem_free=$(free -m | grep "Mem" | awk '{print $3}' | head -n 1)