Added output line to ping that is closer to ping program output
This commit is contained in:
@@ -470,8 +470,11 @@ class Mininet( object ):
|
|||||||
output( '\n' )
|
output( '\n' )
|
||||||
if packets > 0:
|
if packets > 0:
|
||||||
ploss = 100 * lost / packets
|
ploss = 100 * lost / packets
|
||||||
|
received = packets - lost
|
||||||
output( "*** Results: %i%% dropped (%d/%d lost)\n" %
|
output( "*** Results: %i%% dropped (%d/%d lost)\n" %
|
||||||
( ploss, lost, packets ) )
|
( ploss, lost, packets ) )
|
||||||
|
output( "*** Results: %i%% dropped (%d/%d received)\n" %
|
||||||
|
( ploss, received, packets ) )
|
||||||
else:
|
else:
|
||||||
ploss = 0
|
ploss = 0
|
||||||
output( "*** Warning: No packets sent\n" )
|
output( "*** Warning: No packets sent\n" )
|
||||||
|
|||||||
Reference in New Issue
Block a user