rping 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rping +2 -0
- data/lib/rping.rb +3 -0
- metadata +3 -3
data/bin/rping
CHANGED
data/lib/rping.rb
CHANGED
@@ -68,6 +68,7 @@ class RPing
|
|
68
68
|
Thread.start do
|
69
69
|
@count.times do
|
70
70
|
reply = ping_recv0(sock)
|
71
|
+
redo if reply == :redo
|
71
72
|
yield(reply) if block
|
72
73
|
buf << reply if buf
|
73
74
|
end
|
@@ -94,6 +95,8 @@ class RPing
|
|
94
95
|
:seq => icmp[4],
|
95
96
|
:time => (recv_time - icmp[5]) * 1000,
|
96
97
|
}
|
98
|
+
else
|
99
|
+
reply = :redo
|
97
100
|
end
|
98
101
|
end
|
99
102
|
rescue Timeout::Error
|
metadata
CHANGED