fix: [diagnostic] Corrected copy/paste typo

Just me being a monkey
pull/121/head
mokaddem 2019-08-28 16:04:45 +02:00
parent 26f9e31786
commit fb1332be6a
1 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ def check_dispatcher_status(spinner):
time_slept += sleep_duration time_slept += sleep_duration
else: else:
return_flag = True return_flag = True
return_text = 'Took {}s to complete'.format(float(reply):.2f) return_text = 'Took {:.2f}s to complete'.format(float(reply))
break break
return (return_flag, return_text) return (return_flag, return_text)
@ -404,7 +404,7 @@ def check_server_dynamic_enpoint(spinner):
try: try:
j = json.loads(data) j = json.loads(data)
return_flag = True return_flag = True
return_text = 'Dynamic endpoint returned data (took {}s)'.format(time.time()-start_time:.2f) return_text = 'Dynamic endpoint returned data (took {:.2f}s)'.format(time.time()-start_time)
signal.alarm(0) signal.alarm(0)
break break
except Exception as e: except Exception as e: