mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
traffic: remove useless branch in stats report
This completes the work of 68c64c634a
,
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>
This commit is contained in:
committed by
Douglas Bagnall
parent
d727dcc82a
commit
db51004307
@ -2243,31 +2243,18 @@ def generate_stats(statsdir, timing_file):
|
||||
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):
|
||||
|
Reference in New Issue
Block a user