From 6711d6e2e93d89cb43d0eafb7813d91b1c2238c9 Mon Sep 17 00:00:00 2001 From: vvto33 <54504675+vvto33@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:16:00 +0900 Subject: [PATCH] Update function check_virt (#121) Adjusted to recognize 'KVM' when 'sys_manu' contains 'QEMU'. (Detection was failing on BuyVM.net's KVM VPS) --- bench.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bench.sh b/bench.sh index 7e88716..3b149ea 100644 --- a/bench.sh +++ b/bench.sh @@ -159,6 +159,8 @@ check_virt() { virt="KVM" elif [[ "${sys_product}" == *KVM* ]]; then virt="KVM" + elif [[ "${sys_manu}" == *QEMU* ]]; then + virt="KVM" elif [[ "${cname}" == *KVM* ]]; then virt="KVM" elif [[ "${cname}" == *QEMU* ]]; then