Fix code formatting issues.

This commit is contained in:
Marco Paganini 2015-09-06 12:46:38 -07:00
parent fdc71a8f55
commit fc51468874
1 changed files with 4 additions and 3 deletions

View File

@ -686,9 +686,9 @@ def speedtest():
'%(latency)s ms' % best)
else:
if args.collectd:
print_('PUTVAL "%s/speedtest/latency-latency_ms" interval=%d N:%d' %
(socket.gethostname(), args.collectd_interval,
best['latency']))
print_('PUTVAL "%s/speedtest/latency-latency_ms" '
'interval=%d N:%d' % (socket.gethostname(),
args.collectd_interval, best['latency']))
else:
print_('Ping: %(latency)s ms' % best)
@ -780,6 +780,7 @@ def speedtest():
if args.collectd:
time.sleep(args.collectd_interval)
def main():
try:
speedtest()