From 6e7ad46a2e7fed30c8b4616e5571b84f7799462a Mon Sep 17 00:00:00 2001 From: Apfelholz <149402866+Apfelholz@users.noreply.github.com> Date: Fri, 8 Nov 2024 13:59:35 +0100 Subject: [PATCH 1/2] fix: only print progress if totel_jops > 0 --- ptop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ptop.py b/ptop.py index 3cdc0dc..f591c8b 100644 --- a/ptop.py +++ b/ptop.py @@ -60,7 +60,9 @@ def ascii_progress_bar(percentage, bar_length=50): lines.extend(new_lines) clear_console() - print(ascii_progress_bar(progress(lines, tj))) + if tj > 0: + print(ascii_progress_bar(progress(lines, tj))) + print( "--------------------------------------------------------------" ) From 8e200ccb25ff82afbaeeec3d488532105c8bc9ba Mon Sep 17 00:00:00 2001 From: Apfelholz Date: Fri, 8 Nov 2024 14:52:34 +0100 Subject: [PATCH 2/2] Update ptop.py Co-authored-by: Dennis Klein --- ptop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptop.py b/ptop.py index f591c8b..035e4a6 100644 --- a/ptop.py +++ b/ptop.py @@ -60,7 +60,7 @@ def ascii_progress_bar(percentage, bar_length=50): lines.extend(new_lines) clear_console() - if tj > 0: + if tj > 0: print(ascii_progress_bar(progress(lines, tj))) print(