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:
parent
7b09d8759f
commit
1d687abdc9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue