We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef69e2a commit a625effCopy full SHA for a625eff
scripts/start_all.sh
@@ -538,7 +538,7 @@ check_environment() {
538
# 检查内存
539
log_info "检查内存使用情况..."
540
if [ "$OS" = "Darwin" ]; then
541
- 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"'
542
else
543
free -h | grep -E "(total|Mem:)"
544
fi
0 commit comments