mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-19 09:17:21 -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;
|
frames_written += num_to_write;
|
||||||
finish_chunk(chkable);
|
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++;
|
prog_.chunk_count++;
|
||||||
frames_written += match_len;
|
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;
|
offset_in_frames = frames_written;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user