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