Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Oct 18, 2023
1 parent 90ff685 commit e692622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/progressbar/progressbarmng.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (bm *ProgressBarMng) DoneTask(prog *TasksWithHeadlineProg) {
bm.barsRWMutex.RLock()
defer bm.barsRWMutex.RUnlock()
diff := prog.tasksProgressBar.total - prog.tasksProgressBar.tasksCount
// Handle large number of total tasks
// diff is int64, but we can increase the progress up to math.MaxInt in a time
for ; diff > math.MaxInt; diff -= math.MaxInt {
prog.tasksProgressBar.bar.IncrBy(math.MaxInt)
}
Expand Down

0 comments on commit e692622

Please sign in to comment.