diff --git a/bench.sh b/bench.sh index ec4c23b..95f573f 100644 --- a/bench.sh +++ b/bench.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# Description: Auto test download & I/O speed script +# Description: A Bench Script by Teddysun # # Copyright (C) 2015 - 2022 Teddysun # Thanks: LookBack @@ -144,6 +144,8 @@ check_virt(){ virt="KVM" elif [[ "${virtualx}" == *"VMware Virtual Platform"* ]]; then virt="VMware" + elif [[ "${sys_product}" == *"VMware Virtual Platform"* ]]; then + virt="VMware" elif [[ "${virtualx}" == *"Parallels Software International"* ]]; then virt="Parallels" elif [[ "${virtualx}" == *VirtualBox* ]]; then @@ -221,11 +223,12 @@ install_speedtest() { mkdir -p speedtest-cli && tar zxf speedtest.tgz -C ./speedtest-cli && chmod +x ./speedtest-cli/speedtest rm -f speedtest.tgz fi + printf "%-18s%-18s%-20s%-12s\n" " Node Name" "Upload Speed" "Download Speed" "Latency" } print_intro() { echo "-------------------- A Bench.sh Script By Teddysun -------------------" - echo " Version : $(_green v2022-02-22)" + echo " Version : $(_green v2022-06-01)" echo " Usage : $(_red "wget -qO- bench.sh | bash")" } @@ -358,8 +361,7 @@ ipv4_info next print_io_test next -install_speedtest && printf "%-18s%-18s%-20s%-12s\n" " Node Name" "Upload Speed" "Download Speed" "Latency" -speed && rm -fr speedtest-cli +install_speedtest && speed && rm -fr speedtest-cli next print_end_time next