Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't ping-block the console!

  • Loading branch information...
commit 6d1edbe3cd89591228809632cf426e26f544f3d8 1 parent 2461ce9
@msantos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/evum.erl
View
2  src/evum.erl
@@ -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 &").
Please sign in to comment.
Something went wrong with that request. Please try again.