No need to retrieve data and select server when use mini

This commit is contained in:
Peter Dave Hello 2015-07-07 16:58:32 +08:00
parent 514b310484
commit 133c22fd25
1 changed files with 3 additions and 3 deletions

View File

@ -615,7 +615,7 @@ def speedtest():
if args.secure: if args.secure:
scheme = 'https' scheme = 'https'
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()
@ -623,7 +623,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)
@ -696,7 +696,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)