Return a list with test results

speedest() returns a list with three values: download speed, upload
speed and ping time.
This commit is contained in:
Ale Almuna 2015-12-20 18:30:56 -03:00
parent 7b09d8759f
commit 1d687abdc9
1 changed files with 8 additions and 0 deletions

View File

@ -784,6 +784,14 @@ def speedtest():
print_('Share results: %s://www.speedtest.net/result/%s.png' %
(scheme, resultid[0]))
results = [
(dlspeed / 1000 / 1000) * args.units[1],
(ulspeed / 1000 / 1000) * args.units[1],
best['latency']
]
return results
def main():
try: