Fixed a bug where the Press Q to Quit message was still being displayed after 3 seconds.

This commit is contained in:
JustinOros
2025-07-31 14:41:37 -07:00
parent 42e9d5fa95
commit 8336d71054
+1 -1
View File
@@ -92,7 +92,7 @@ def main():
while True: while True:
refresh_count += 1 refresh_count += 1
elapsed = time.time() - start_time elapsed = time.time() - start_time
show_quit = refresh_count <= 3 or elapsed <= 3 show_quit = refresh_count < 3 and elapsed < 3
print_processes(limit, show_quit_hint=show_quit) print_processes(limit, show_quit_hint=show_quit)
key = wait_for_keypress(timeout=interval) key = wait_for_keypress(timeout=interval)
if key and key.lower() == 'q': if key and key.lower() == 'q':