Skip to content
Snippets Groups Projects
Commit fec98e27 authored by Brian O'Connor's avatar Brian O'Connor
Browse files

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

parent c188bee3
No related branches found
No related tags found
No related merge requests found
......@@ -470,8 +470,11 @@ def ping( self, hosts=None, timeout=None ):
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" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment