No need to retrieve data and select server when use mini
This commit is contained in:
parent
72da41e4fc
commit
1aaa2d2b8b
|
@ -568,7 +568,7 @@ def speedtest():
|
||||||
source = args.source
|
source = args.source
|
||||||
socket.socket = bound_socket
|
socket.socket = bound_socket
|
||||||
|
|
||||||
if not args.simple:
|
if not args.simple and not args.mini:
|
||||||
print_('Retrieving speedtest.net configuration...')
|
print_('Retrieving speedtest.net configuration...')
|
||||||
try:
|
try:
|
||||||
config = getConfig()
|
config = getConfig()
|
||||||
|
@ -576,7 +576,7 @@ def speedtest():
|
||||||
print_('Cannot retrieve speedtest configuration')
|
print_('Cannot retrieve speedtest configuration')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not args.simple:
|
if not args.simple and not args.mini:
|
||||||
print_('Retrieving speedtest.net server list...')
|
print_('Retrieving speedtest.net server list...')
|
||||||
if args.list or args.server:
|
if args.list or args.server:
|
||||||
servers = closestServers(config['client'], True)
|
servers = closestServers(config['client'], True)
|
||||||
|
@ -658,7 +658,7 @@ def speedtest():
|
||||||
except:
|
except:
|
||||||
best = servers[0]
|
best = servers[0]
|
||||||
else:
|
else:
|
||||||
if not args.simple:
|
if not args.simple and not args.mini:
|
||||||
print_('Selecting best server based on latency...')
|
print_('Selecting best server based on latency...')
|
||||||
best = getBestServer(servers)
|
best = getBestServer(servers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue