Skip to content

Commit 6af7fd9

Browse files
committed
slight fix with maximum progress
1 parent b6cb828 commit 6af7fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl ProgressCounters {
1515
pub fn new(maximum_iteration: usize) -> ProgressCounters {
1616
ProgressCounters {
1717
reference: Arc::new(RelaxedCounter::new(0)),
18-
reference_maximum: Arc::new(RelaxedCounter::new(maximum_iteration)),
18+
reference_maximum: Arc::new(RelaxedCounter::new(maximum_iteration - 1)),
1919
series_approximation: Arc::new(RelaxedCounter::new(0)),
2020
series_validation: Arc::new(RelaxedCounter::new(0)),
2121
iteration: Arc::new(RelaxedCounter::new(0)),

0 commit comments

Comments
 (0)