From 85a6f6fa6328640f3b628fe67322a5b05009b7a3 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Wed, 15 Feb 2017 16:30:31 +0100 Subject: [PATCH] Fixed a bug (str+float) --- bin/ModulesInformationV2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ModulesInformationV2.py b/bin/ModulesInformationV2.py index 7a33a311..1b548734 100755 --- a/bin/ModulesInformationV2.py +++ b/bin/ModulesInformationV2.py @@ -627,7 +627,7 @@ def fetchQueueData(): if int(card) > 0: # Queue need to be killed if int((datetime.datetime.now() - startTime_readable).total_seconds()) > args.treshold: - log(([str(time.time()), queue, "-", "ST:"+str(timestamp)+" PT:"+str(time.time()-timestamp)], 0), True) + log(([str(time.time()), queue, "-", "ST:"+str(timestamp)+" PT:"+str(time.time()-float(timestamp))], 0), True) #log.write(json.dumps([queue, card, str(startTime_readable), str(processed_time_readable), path]) + "\n") try: last_kill_try = time.time() - lastTimeKillCommand[moduleNum]