Compare commits

...

3 Commits

Author SHA1 Message Date
Lucas - BLOCK33
81c8e3503d
Merge b0d8059f9f into ff838657fa 2025-01-09 09:12:29 -05:00
Lucas - BLOCK33
b0d8059f9f
Update main.py 2024-12-24 18:56:41 -03:00
tonynoce
1d3e8377e6 modified: main.py 2024-12-24 16:57:11 -03:00

View File

@ -183,7 +183,13 @@ def prompt_worker(q, server_instance):
current_time = time.perf_counter()
execution_time = current_time - execution_start_time
logging.info("Prompt executed in {:.2f} seconds".format(execution_time))
# Log Time in a more readable way after 10 minutes
if execution_time > 600:
execution_time = time.strftime("%H:%M:%S", time.gmtime(execution_time))
logging.info(f"Prompt executed in {execution_time}")
else:
logging.info("Prompt executed in {:.2f} seconds".format(execution_time))
flags = q.get_flags()
free_memory = flags.get("free_memory", False)