mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-18 17:00:30 -04:00
Fix bug where match frames were not properly converted to bytes
This commit is contained in:
parent
24829e2efe
commit
65a16dc214
@ -1074,11 +1074,13 @@ void segmenter_<LoggerPolicy, GranularityPolicy>::segment_and_add_data(
|
||||
frames_written += num_to_write;
|
||||
finish_chunk(chkable);
|
||||
|
||||
chkable.add_chunk(block_num, match_off, match_len);
|
||||
chkable.add_chunk(block_num, this->frames_to_bytes(match_off),
|
||||
this->frames_to_bytes(match_len));
|
||||
|
||||
prog_.chunk_count++;
|
||||
frames_written += match_len;
|
||||
|
||||
prog_.saved_by_segmentation += match_len;
|
||||
prog_.saved_by_segmentation += this->frames_to_bytes(match_len);
|
||||
|
||||
offset_in_frames = frames_written;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user