From 8fc502d3e700e03b9c66669502204f1a4ffdd933 Mon Sep 17 00:00:00 2001 From: RikudouPatrickstar <68163551+RikudouPatrickstar@users.noreply.github.com> Date: Sat, 27 Jul 2024 16:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E5=8D=A0=E7=94=A8=E4=BB=A5?= =?UTF-8?q?=20MB=20=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/menu.sh b/scripts/menu.sh index ca5b6ec..fa532ae 100644 --- a/scripts/menu.sh +++ b/scripts/menu.sh @@ -75,7 +75,7 @@ ckstatus(){ PID=$(pidof CrashCore | awk '{print $NF}') if [ -n "$PID" ];then run="\033[32m正在运行($redir_mod)\033[0m" - VmRSS=`cat /proc/$PID/status|grep -w VmRSS|awk '{print $2,$3}'` + VmRSS=`cat /proc/$PID/status|grep -w VmRSS|awk 'unit="MB"{print $2/1000, unit}'` #获取运行时长 touch ${TMPDIR}/crash_start_time #用于延迟启动的校验 start_time=$(cat ${TMPDIR}/crash_start_time)