Skip to content

Commit fa9aa1c

Browse files
update testdata
1 parent 8b1ca96 commit fa9aa1c

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

pingparser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def main(argv=sys.argv):
137137
\t%h host name or IP address
138138
\t%s packets sent
139139
\t%r packets received
140+
\t%d duplicates
140141
\t%p packet_loss
141142
\t%m minimum ping in milliseconds
142143
\t%a average ping in milliseconds

test/data/dup.testdata

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
172.17.100.10,61,61,167,0,143.743,167.150,197.045,22.298
2+
PING 172.17.100.10 (172.17.100.10) 56(84) bytes of data.
3+
4+
--- 172.17.100.10 ping statistics ---
5+
61 packets transmitted, 61 received, +167 duplicates, 0% packet loss, time 119997ms
6+
rtt min/avg/max/mdev = 143.743/167.150/197.045/22.298 ms

test/data/original.testdata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
www.l.google.com,2,2,0,13.946,17.682,21.418,3.736
1+
www.l.google.com,2,2,0,0,13.946,17.682,21.418,3.736
22
PING www.l.google.com (74.125.225.84) 56(84) bytes of data.
33
64 bytes from 74.125.225.84: icmp_req=1 ttl=55 time=13.9 ms
44
64 bytes from 74.125.225.84: icmp_req=2 ttl=55 time=21.4 ms

test/data/yahoo.ping.testdata.debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
yahoo.com,1,1,0,0.557,0.557,0.557,0.000
1+
yahoo.com,1,1,0,0,0.557,0.557,0.557,0.000
22
PING yahoo.com (98.138.253.109): 56 data bytes
33
64 bytes from 98.138.253.109: icmp_seq=0 ttl=37 time=0.557 ms
44
--- yahoo.com ping statistics ---

test/data/yahoo.ping.testdata.osx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
yahoo.com,1,1,0.0,27.409,27.409,27.409,0.000
1+
yahoo.com,1,1,0,0.0,27.409,27.409,27.409,0.000
22
PING yahoo.com (98.139.183.24): 56 data bytes
33
64 bytes from 98.139.183.24: icmp_seq=0 ttl=48 time=27.409 ms
44

0 commit comments

Comments
 (0)