From f5cd6f8d13055f1e8ef21c9d33f1e5225ab78b25 Mon Sep 17 00:00:00 2001 From: Suhail Haris Date: Mon, 26 Jun 2023 21:21:02 +0530 Subject: [PATCH 1/3] Add Asian Location: Biznet ID --- yabs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/yabs.sh b/yabs.sh index 84d6d3e..68ce91d 100644 --- a/yabs.sh +++ b/yabs.sh @@ -818,6 +818,7 @@ if [ -z "$SKIP_IPERF" ]; then "nyc.speedtest.clouvider.net" "5200-5209" "Clouvider" "NYC, NY, US (10G)" "IPv4|IPv6" \ "dal.speedtest.clouvider.net" "5200-5209" "Clouvider" "Dallas, TX, US (10G)" "IPv4|IPv6" \ "la.speedtest.clouvider.net" "5200-5209" "Clouvider" "Los Angeles, CA, US (10G)" "IPv4|IPv6" \ + "iperf.biznetnetworks.com" "5201-5203" "Biznet" "Jakarta, ID (10G)" "IPv4|IPv6" ) # if the "REDUCE_NET" flag is activated, then do a shorter iperf test with only three locations From 2b033dd616f14c1df9f13851e87c84ef5f6e0331 Mon Sep 17 00:00:00 2001 From: Suhail Haris Date: Sat, 8 Jul 2023 23:10:27 +0530 Subject: [PATCH 2/3] Improve the Network Information Sometimes from ip-api, either ISP or ASN is available, but it would not show since the condition is not satisfied. Fix to show if either value is present --- yabs.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/yabs.sh b/yabs.sh index 68ce91d..c0a1371 100644 --- a/yabs.sh +++ b/yabs.sh @@ -12,7 +12,7 @@ # performance via fio. The script is designed to not require any dependencies # - either compiled or installed - nor admin privileges to run. -YABS_VERSION="v2023-04-23" +YABS_VERSION="v2023-07-08" echo -e '# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #' echo -e '# Yet-Another-Bench-Script #' @@ -298,10 +298,16 @@ function ip_info() { echo "$net_type Network Information:" echo "---------------------------------" - if [[ -n "$isp" && -n "$as" ]]; then - echo "ISP : $isp" - echo "ASN : $as" - fi + if [[ -n "$isp" ]]; then + echo "ISP : $isp" + else + echo "ISP : Unknown" + fi + if [[ -n "$as" ]]; then + echo "ASN : $as" + else + echo "ASN : Unknown" + fi if [[ -n "$org" ]]; then echo "Host : $org" fi From 57c70f66db99490b49f47519ed7bd85fd9800c92 Mon Sep 17 00:00:00 2001 From: Suhail Haris Date: Fri, 28 Jul 2023 15:23:08 +0530 Subject: [PATCH 3/3] Fix spacing issue --- yabs.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yabs.sh b/yabs.sh index c0a1371..f435afb 100644 --- a/yabs.sh +++ b/yabs.sh @@ -299,15 +299,15 @@ function ip_info() { echo "---------------------------------" if [[ -n "$isp" ]]; then - echo "ISP : $isp" - else - echo "ISP : Unknown" - fi + echo "ISP : $isp" + else + echo "ISP : Unknown" + fi if [[ -n "$as" ]]; then - echo "ASN : $as" - else - echo "ASN : Unknown" - fi + echo "ASN : $as" + else + echo "ASN : Unknown" + fi if [[ -n "$org" ]]; then echo "Host : $org" fi