Skip to content

Commit 5616afe

Browse files
committed
bugfix: show progress when monitor mode disabled
1 parent 1f52b1e commit 5616afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cv/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ def monitor_processes(self):
121121

122122
if fd and fd_stale.fdinfo.pos > 0.0 and fd_stale.fdinfo.size > 0.0:
123123
progress_pcnt = float(fd.fdinfo.pos)/fd.fdinfo.size
124+
else:
125+
progress_pcnt = float(fd_stale.fdinfo.pos)/fd_stale.fdinfo.size
124126

125127
self.nprint("[%5d] %s %s %.1f%% (%s / %s)" % (
126128
proc.pid,

0 commit comments

Comments
 (0)