Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sivel/speedtest-cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2018-02-20 23:59:08 +0300
committerMatt Martz <matt@sivel.net>2018-02-20 23:59:08 +0300
commitf8aa20ecdf5707eb2dfce1a811a6c19c5cf928bd (patch)
tree72fcd75c5812fda6aa94ebf1739bcff1a7fc9b92
parent8ff923b0fb03be02002b168143ffded7527138e4 (diff)
Move results.share() to ensure csv and json have access to it. Fixes #483
-rwxr-xr-xspeedtest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/speedtest.py b/speedtest.py
index d6e1219..7ea05a5 100755
--- a/speedtest.py
+++ b/speedtest.py
@@ -1815,6 +1815,9 @@ def shell():
printer('Results:\n%r' % results.dict(), debug=True)
+ if not args.simple and args.share:
+ results.share()
+
if args.simple:
printer('Ping: %s ms\nDownload: %0.2f M%s/s\nUpload: %0.2f M%s/s' %
(results.ping,
@@ -1825,8 +1828,6 @@ def shell():
elif args.csv:
printer(results.csv(delimiter=args.csv_delimiter))
elif args.json:
- if args.share:
- results.share()
printer(results.json())
if args.share and not machine_format: