There's no column for coordinates in the table, so it looks a little broken currently:
Please choose a server to create your account on.
-------------------------------------------------------------------------
# | Host | Location | Users | Latency
-------------------------------------------------------------------------
1 | ny1 | New York City, New York, USA | 793/500|{'lat': 40.7, 'lon': -74} | 88.0 ms
2 | to1 | Toronto, Ontario, Canada | 368/500|{'lat': 43.7, 'lon': -79.4} | 97.1 ms
3 | da1 | Dallas, Texas, USA | 299/500|{'lat': 32.8, 'lon': -96.8} | 131 ms
4 | sf1 | San Francisco, California, USA | 443/500|{'lat': 37.8, 'lon': -122.4} | 168 ms
-------------------------------------------------------------------------
$host_data currently looks like this:
ny1.hashbang.sh|45.58.35.111|New York City, New York, USA|793|500|{'lat': 40.7, 'lon': -74}
and I suspect that line 283 of hashbang.sh
while IFS="|" read -r host _ location current_users max_users; do
should look more like
while IFS="|" read -r host _ location current_users max_users _; do
There's no column for coordinates in the table, so it looks a little broken currently:
$host_data
currently looks like this:and I suspect that line 283 of hashbang.sh
should look more like
In other words, please apply the following patch:
Disclaimer: this works on my machine, but may not be POSIX, may explode violently in shells other than bash, etc. etc.