Added output line to ping that is closer to ping program output

This commit is contained in:
Brian O'Connor
2013-07-11 11:30:12 -07:00
parent c188bee3e3
commit fec98e2798
+3
View File
@@ -470,8 +470,11 @@ class Mininet( object ):
output( '\n' )
if packets > 0:
ploss = 100 * lost / packets
received = packets - lost
output( "*** Results: %i%% dropped (%d/%d lost)\n" %
( ploss, lost, packets ) )
output( "*** Results: %i%% dropped (%d/%d received)\n" %
( ploss, received, packets ) )
else:
ploss = 0
output( "*** Warning: No packets sent\n" )