Move results.share() to ensure csv and json have access to it. Fixes #483
This commit is contained in:
parent
8ff923b0fb
commit
f8aa20ecdf
|
@ -1815,6 +1815,9 @@ def shell():
|
||||||
|
|
||||||
printer('Results:\n%r' % results.dict(), debug=True)
|
printer('Results:\n%r' % results.dict(), debug=True)
|
||||||
|
|
||||||
|
if not args.simple and args.share:
|
||||||
|
results.share()
|
||||||
|
|
||||||
if args.simple:
|
if args.simple:
|
||||||
printer('Ping: %s ms\nDownload: %0.2f M%s/s\nUpload: %0.2f M%s/s' %
|
printer('Ping: %s ms\nDownload: %0.2f M%s/s\nUpload: %0.2f M%s/s' %
|
||||||
(results.ping,
|
(results.ping,
|
||||||
|
@ -1825,8 +1828,6 @@ def shell():
|
||||||
elif args.csv:
|
elif args.csv:
|
||||||
printer(results.csv(delimiter=args.csv_delimiter))
|
printer(results.csv(delimiter=args.csv_delimiter))
|
||||||
elif args.json:
|
elif args.json:
|
||||||
if args.share:
|
|
||||||
results.share()
|
|
||||||
printer(results.json())
|
printer(results.json())
|
||||||
|
|
||||||
if args.share and not machine_format:
|
if args.share and not machine_format:
|
||||||
|
|
Loading…
Reference in New Issue