diff --git a/shard.yml b/shard.yml index 2f88542..0c1b94e 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,6 @@ name: pinger -version: 1.1.0 +version: 1.1.1 +crystal: ">= 0.36.1" authors: - Caspian Baska diff --git a/src/pinger.cr b/src/pinger.cr index 0c6b419..cc75c8a 100644 --- a/src/pinger.cr +++ b/src/pinger.cr @@ -157,7 +157,7 @@ class Pinger when /sunos/ [process, host, timeout.to_s] when "hp-ux" - [process, host, "-n#{count.to_s}", "-m", timeout.to_s] + [process, host, "-n#{count}", "-m", timeout.to_s] when /cygwin|mingw|msys/ [process, "-n", count.to_s, "-w", (timeout * 1000).to_s, host] else