From 78d359a3dbb4eba17bb4c2ef2ad88099fc502d31 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 9 Apr 2023 21:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StartVM.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StartVM.sh b/StartVM.sh index 1f00e03..fd69f7b 100755 --- a/StartVM.sh +++ b/StartVM.sh @@ -21,7 +21,7 @@ if [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then # 总内存大小GB MemTotal=`awk '($1 == "MemTotal:"){printf "%.2f\n",$2/1024/1024}' /proc/meminfo` use=$(echo "scale=4; $MemTotal / 3" | bc) - if [[ `arch` != "x86_64" ]]; then + if [[ `arch` == "x86_64" ]]; then echo X86 架构,使用 kvm 加速 kvm --hda "$HOME/Qemu/Windows/Windows.qcow2" -soundhw all -smp $CpuCount -m ${use}G exit