Permalink
Browse files

Don't ping-block the console!

  • Loading branch information...
msantos committed Dec 29, 2010
1 parent 2461ce9 commit 6d1edbe3cd89591228809632cf426e26f544f3d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evum.erl
View
@@ -72,7 +72,7 @@ ping(Ref, Hostname) when is_list(Hostname) ->
end,
ping(Ref, Addr);
ping(Ref, {A,B,C,D} = IP) when is_integer(A), is_integer(B), is_integer(C), is_integer(D) ->
- send(Ref, "ping -c 1 " ++ inet_parse:ntoa(IP)).
+ send(Ref, "ping -w 5 -c 1 " ++ inet_parse:ntoa(IP)).
sniff(Ref) ->
send(Ref, "tcpdump -s 0 -w /tmp/sniff.out -i eth0 > /dev/null 2>&1 &").

0 comments on commit 6d1edbe

Please sign in to comment.