From 491da316089331b7dfd0432736b51c901c928c33 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Wed, 16 Dec 2020 17:43:17 +0100 Subject: [PATCH] Fix RTT unit conversion (again) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 32cd4e3..d4d2a2b 100644 --- a/main.go +++ b/main.go @@ -273,7 +273,7 @@ func ping(ip string) (p Ping) { defer res.Body.Close() j := json.NewDecoder(res.Body) _ = j.Decode(&p) - p.RTT *= 100 + p.RTT *= 1000 return p }