Tidy up for flakes8
This commit is contained in:
parent
0e45b991f0
commit
d9142d2b4e
|
@ -788,18 +788,18 @@ def speedtest():
|
||||||
(scheme, resultid[0]))
|
(scheme, resultid[0]))
|
||||||
|
|
||||||
if args.log:
|
if args.log:
|
||||||
log_output = ['{:%Y-%b-%d %H:%M:%S}'.format(datetime.datetime.now()),
|
log_output = ['{:%Y-%b-%d %H:%M:%S}'.format(datetime.datetime.now()),
|
||||||
'%0.2f' % (dlspeed / 1000000 * 8),
|
'%0.2f' % (dlspeed / 1000000 * 8),
|
||||||
'%0.2f' % (ulspeed / 1000000 * 8),
|
'%0.2f' % (ulspeed / 1000000 * 8),
|
||||||
config['client']['isp'],
|
config['client']['isp'],
|
||||||
config['client']['ip'],
|
config['client']['ip'],
|
||||||
'%(sponsor)s,(%(name)s),%(d)0.2f km,%(latency)s ms' % best
|
'%(sponsor)s,(%(name)s),%(d)0.2f km,%(latency)s ms' % best
|
||||||
]
|
]
|
||||||
|
|
||||||
if args.share:
|
if args.share:
|
||||||
log_output.append('%s://www.speedtest.net/result/%s.png' %
|
log_output.append('%s://www.speedtest.net/result/%s.png' %
|
||||||
(scheme, resultid[0]))
|
(scheme, resultid[0]))
|
||||||
|
|
||||||
fresh_file = not os.path.isfile(args.log)
|
fresh_file = not os.path.isfile(args.log)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue