From a625eff5251fb6128445d846cc89e6f20372bd5f Mon Sep 17 00:00:00 2001 From: fuyaozong Date: Thu, 13 Nov 2025 09:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=9A=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=A3=80=E6=9F=A5=E7=B3=BB=E7=BB=9F=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=97=B6=E5=A6=82=E6=9E=9C=E6=93=8D=E4=BD=9C=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=98=AFDarwin=EF=BC=8C=E6=A3=80=E6=9F=A5=E5=86=85=E5=AD=98?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=83=85=E5=86=B5=E8=BE=93=E5=87=BA=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=EF=BC=8C=E5=8E=9F=E5=9B=A0=E6=98=AF=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start_all.sh b/scripts/start_all.sh index dc205ff..56abcdc 100755 --- a/scripts/start_all.sh +++ b/scripts/start_all.sh @@ -538,7 +538,7 @@ check_environment() { # 检查内存 log_info "检查内存使用情况..." if [ "$OS" = "Darwin" ]; then - vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages free: (\d+)/ and print "Free Memory: ", $1 * $size / 1048576, " MB\n"' + vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages free:\s*(\d+)/ and print "Free Memory: ", $1 * $size / 1048576, " MB\n"' else free -h | grep -E "(total|Mem:)" fi