Skip to content

Commit

Permalink
chore: add crystal version and fix ameba warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Mar 22, 2021
1 parent 72ebbe2 commit 796fcaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: pinger
version: 1.1.0
version: 1.1.1
crystal: ">= 0.36.1"

authors:
- Caspian Baska <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/pinger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 796fcaa

Please sign in to comment.