Skip to content

Commit

Permalink
Implemented feedback
Browse files Browse the repository at this point in the history
I have read and agree to the CLA of the Kuzu repository.
  • Loading branch information
MSebanc committed Mar 19, 2024
1 parent 3af97cf commit 2c24371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/task_system/progress_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ void ProgressBar::finishPipeline() {
return;
}
numPipelinesFinished++;
// This ensures that the progress bar is updated back to 0% after a pipeline is finished.
prevCurPipelineProgress = -0.01;
updateProgress(0.0);
}

void ProgressBar::updateProgress(double curPipelineProgress) {
// Only update the progress bar if the progress has changed by at least 1%.
if (!trackProgress || curPipelineProgress - prevCurPipelineProgress < 0.01) {
return;
}
Expand Down

0 comments on commit 2c24371

Please sign in to comment.