Revision 92a28881
mininet/net.py | ||
---|---|---|
507 | 507 |
output( ( '%s ' % dest.name ) if received else 'X ' ) |
508 | 508 |
output( '\n' ) |
509 | 509 |
if packets > 0: |
510 |
ploss = float(100) * lost / packets
|
|
510 |
ploss = 100.0 * lost / packets
|
|
511 | 511 |
received = packets - lost |
512 | 512 |
output( "*** Results: %i%% dropped (%d/%d received)\n" % |
513 | 513 |
( ploss, received, packets ) ) |
Also available in: Unified diff