Skip to content

Commit

Permalink
use the correct increment for an atomic int
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Sep 26, 2024
1 parent aec3faf commit c569b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/progress.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ProgressMeter {
//std::cerr << input_seconds << " seconds is " << days << " days, " << hours << " hours, " << minutes << " minutes, and " << seconds << " seconds." << std::endl;
}
void increment(const uint64_t& incr) {
completed += incr;
completed.fetch_add(incr, std::memory_order_relaxed);
}
};

Expand Down

0 comments on commit c569b46

Please sign in to comment.