From fb1332be6a6471542d44daff3488403103ff7c64 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Wed, 28 Aug 2019 16:04:45 +0200 Subject: [PATCH] fix: [diagnostic] Corrected copy/paste typo Just me being a monkey --- diagnostic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diagnostic.py b/diagnostic.py index 2b0e9bd..386c048 100755 --- a/diagnostic.py +++ b/diagnostic.py @@ -365,7 +365,7 @@ def check_dispatcher_status(spinner): time_slept += sleep_duration else: return_flag = True - return_text = 'Took {}s to complete'.format(float(reply):.2f) + return_text = 'Took {:.2f}s to complete'.format(float(reply)) break return (return_flag, return_text) @@ -404,7 +404,7 @@ def check_server_dynamic_enpoint(spinner): try: j = json.loads(data) 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) break except Exception as e: