Skip to content

Commit af78f35

Browse files
authored
Improve Network Information (masonr#70)
* Add Asian Location: Biznet ID * 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 * Fix spacing issue
1 parent f648820 commit af78f35

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

yabs.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# performance via fio. The script is designed to not require any dependencies
1313
# - either compiled or installed - nor admin privileges to run.
1414

15-
YABS_VERSION="v2023-04-23"
15+
YABS_VERSION="v2023-07-08"
1616

1717
echo -e '# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #'
1818
echo -e '# Yet-Another-Bench-Script #'
@@ -298,9 +298,15 @@ function ip_info() {
298298
echo "$net_type Network Information:"
299299
echo "---------------------------------"
300300
301-
if [[ -n "$isp" && -n "$as" ]]; then
301+
if [[ -n "$isp" ]]; then
302302
echo "ISP : $isp"
303+
else
304+
echo "ISP : Unknown"
305+
fi
306+
if [[ -n "$as" ]]; then
303307
echo "ASN : $as"
308+
else
309+
echo "ASN : Unknown"
304310
fi
305311
if [[ -n "$org" ]]; then
306312
echo "Host : $org"
@@ -818,6 +824,7 @@ if [ -z "$SKIP_IPERF" ]; then
818824
"nyc.speedtest.clouvider.net" "5200-5209" "Clouvider" "NYC, NY, US (10G)" "IPv4|IPv6" \
819825
"dal.speedtest.clouvider.net" "5200-5209" "Clouvider" "Dallas, TX, US (10G)" "IPv4|IPv6" \
820826
"la.speedtest.clouvider.net" "5200-5209" "Clouvider" "Los Angeles, CA, US (10G)" "IPv4|IPv6" \
827+
"iperf.biznetnetworks.com" "5201-5203" "Biznet" "Jakarta, ID (10G)" "IPv4|IPv6"
821828
)
822829

823830
# if the "REDUCE_NET" flag is activated, then do a shorter iperf test with only three locations

0 commit comments

Comments
 (0)