aboutsummaryrefslogtreecommitdiff
path: root/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'main.nim')
-rw-r--r--main.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.nim b/main.nim
index 04a81f1..be77427 100644
--- a/main.nim
+++ b/main.nim
@@ -70,7 +70,7 @@ proc main() =
70 of "max": max = parseInt(val) 70 of "max": max = parseInt(val)
71 71
72 of "ping": 72 of "ping":
73 let targetIp = parseIpAddress(val) 73 let targetIp = resolve(val)
74 let mon = initPingMonitor(targetIp, procIdent()) 74 let mon = initPingMonitor(targetIp, procIdent())
75 probe = (timeout: Duration) => mon.ping(timeout).inMilliseconds.int 75 probe = (timeout: Duration) => mon.ping(timeout).inMilliseconds.int
76 76