hep-gc / shoal

A squid cache publishing and advertising tool designed to work in fast changing environments
Apache License 2.0
4 stars 8 forks source link

shoal returns same numbers for longitide and latitude ... #152

Closed rseuster closed 3 years ago

rseuster commented 4 years ago
curl http://shoal.heprc.uvic.ca/nearest/1

returns this, check the value for long and lat:

{"0": {"load": 911, "domain_access": true, "squid_port": 3128, "global_access": true, "verified": true, "last_active": 1580710265.92829, "created": 1580613503.161603, "external_ip": null, "geo_data": {"city": "Vancouver", "region_code": "BC", "postal_code": "V6B", "country_code": "CA", "country_name": "Canada", "latitude": 49.282, "continent": "NA", "time_zone": "America/Vancouver", "longitude": 49.282, "metro_code": null}, "hostname": "kraken01.westgrid.ca", "public_ip": "206.12.48.249", "private_ip": "172.21.2.25", "max_load": 122000, "distance": 0.002364366707111334}}

This seems wrong only in this printout, the order of servers should be OK (TM)

MarcusEbert commented 3 years ago

fixed for V1.0.0