Skip to content

Commit 6e7ad46

Browse files
committed
fix: only print progress if totel_jops > 0
1 parent 0eb7d29 commit 6e7ad46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ptop.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def ascii_progress_bar(percentage, bar_length=50):
6060
lines.extend(new_lines)
6161

6262
clear_console()
63-
print(ascii_progress_bar(progress(lines, tj)))
63+
if tj > 0:
64+
print(ascii_progress_bar(progress(lines, tj)))
65+
6466
print(
6567
"--------------------------------------------------------------"
6668
)

0 commit comments

Comments
 (0)