Ping: packet loss should be a float
This commit is contained in:
+1
-1
@@ -504,7 +504,7 @@ class Mininet( object ):
|
||||
output( ( '%s ' % dest.name ) if received else 'X ' )
|
||||
output( '\n' )
|
||||
if packets > 0:
|
||||
ploss = 100 * lost / packets
|
||||
ploss = float(100) * lost / packets
|
||||
received = packets - lost
|
||||
output( "*** Results: %i%% dropped (%d/%d received)\n" %
|
||||
( ploss, received, packets ) )
|
||||
|
||||
Reference in New Issue
Block a user