This completes the work of
68c64c634ad7576b2ab5ef838c203320afd90f44,
but differs from that in that it makes no actual change because isatty
was not being called so was always evaluated as true.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
rng = values[-1] - values[0]
maxv = values[-1]
desc = OP_DESCRIPTIONS.get(op, '')
- if sys.stdout.isatty:
- print("%-12s %4s %-35s %12d %12d %12.6f "
- "%12.6f %12.6f %12.6f %12.6f"
- % (protocol,
- packet_type,
- desc,
- count,
- failed,
- mean,
- median,
- percentile,
- rng,
- maxv))
- else:
- print("%s\t%s\t%s\t%d\t%d\t%f\t%f\t%f\t%f\t%f"
- % (protocol,
- packet_type,
- desc,
- count,
- failed,
- mean,
- median,
- percentile,
- rng,
- maxv))
+ print("%-12s %4s %-35s %12d %12d %12.6f "
+ "%12.6f %12.6f %12.6f %12.6f"
+ % (protocol,
+ packet_type,
+ desc,
+ count,
+ failed,
+ mean,
+ median,
+ percentile,
+ rng,
+ maxv))
def opcode_key(v):