mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 06:48:39 -04:00
Fix update_progress for files >4GiB
This commit is contained in:
parent
af8aafc30f
commit
323ece6589
@ -1075,7 +1075,8 @@ void segmenter_<LoggerPolicy, SegmentingPolicy>::segment_and_add_data(
|
|||||||
// TODO: how can we reasonably update the top progress bar with
|
// TODO: how can we reasonably update the top progress bar with
|
||||||
// multiple concurrent segmenters?
|
// multiple concurrent segmenters?
|
||||||
|
|
||||||
auto update_progress = [this, last_offset = 0](size_t offset) mutable {
|
auto update_progress =
|
||||||
|
[this, last_offset = static_cast<size_t>(0)](size_t offset) mutable {
|
||||||
auto bytes = frames_to_bytes(offset - last_offset);
|
auto bytes = frames_to_bytes(offset - last_offset);
|
||||||
prog_.total_bytes_read += bytes;
|
prog_.total_bytes_read += bytes;
|
||||||
pctx_->bytes_processed += bytes;
|
pctx_->bytes_processed += bytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user