diff --git a/bin/benchmark b/bin/benchmark index 22c9680..5929b2f 100755 --- a/bin/benchmark +++ b/bin/benchmark @@ -18,7 +18,7 @@ ############ # Version -version=1.2.2 +version=1.2.3 # Individual benchmark time limit (seconds) # Quick benchmark test_run_time_quick=6 @@ -177,7 +177,7 @@ _run-benchmark() { memory) params=("${params[@]}" "--threads=${2}" "--memory-block-size=${3}" "--memory-total-size=${4}" "--memory-access-mode=${5}" memory) ;; disk) params=("${params[@]}" "--threads=${2}" "--file-num=${3}" "--file-block-size=${4}" "--file-test-mode=${5}" "--file-fsync-all=${6}" "--file-rw-ratio=${7}" "--file-total-size=${8}" fileio) ;; download) - curl -4 --max-time 60 --no-progress-meter -o /dev/null -w "%{speed_download}\n" --url "${4}" + curl --disable -4 --max-time 60 --no-progress-meter -o /dev/null -w "%{speed_download}\n" --url "${4}" return 0 ;; *) diff --git a/lib/network.sh b/lib/network.sh index fac8c09..0d2705f 100644 --- a/lib/network.sh +++ b/lib/network.sh @@ -31,7 +31,7 @@ iplocation() { params="access_key=${IPSTACK_TOKEN}&fields=city,region_name,country_name,continent_name,hostname,ip&hostname=1" for arg in "${@}"; do - if ! result=$(curl --no-progress-meter -w"\n" "http://api.ipstack.com/${arg}?${params}"); then + if ! result=$(curl --disable --no-progress-meter -w"\n" "http://api.ipstack.com/${arg}?${params}"); then return 1 fi jq '.' <<<"${result}"