traffic: uniform stats output
authorJoe Guo <joeg@catalyst.net.nz>
Thu, 10 May 2018 23:50:38 +0000 (11:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2018 05:08:25 +0000 (07:08 +0200)
commit68c64c634ad7576b2ab5ef838c203320afd90f44
treeb47561eaea903b675e450c5f3f3573f082c43c64
parent8084f1838cee774fc79a4c7ff2d1182388105fcb
traffic: uniform stats output

The original code is trying to output different data format for tty or file.
This is unnecessary and cause confusion while writing script to parse result.

The human-readable one is also easy for code to parse.
Remove if check for isatty(), just make output the same.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/emulate/traffic.py