actually we do know how long it will take

This commit is contained in:
Cyberes 2023-08-25 15:17:01 -06:00
parent d64152587c
commit 0150bbf8dd
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import collections
import json
import os
import sys
@ -110,7 +109,7 @@ def home():
if stats['estimated_wait_sec'] == 0 and stats['stats']['proompts']['processing'] > 0:
# There will be a wait if the queue is empty but prompts are processing, but we don't
# know how long.
estimated_wait_sec = f"> 1 seconds"
estimated_wait_sec = f"less than {stats['stats']['average_generation_elapsed_sec']} seconds"
else:
estimated_wait_sec = f"{stats['estimated_wait_sec']} seconds"