Commit cff0581
committed
fix(asc): fix relative timestamp roundtrip for 3+ messages
ASCReader was treating all timestamps as cumulative offsets from
start_time, ignoring the timestamps_format value. When reading a file
written with timestamps_format="relative" (per-event deltas) and
relative_timestamp=False, the reader now accumulates deltas into
start_time instead of adding each delta independently.
Without this fix, a 3-message roundtrip would produce:
msg3: 0.7 + 100.0 = 100.7 (wrong, expected 101.0)
Also strengthen test_write_relative_timestamp_roundtrip to use 3
messages, exposing the bug that was masked by the 2-message case.1 parent 4fe6c13 commit cff0581
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
299 | 303 | | |
300 | 304 | | |
301 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| |||
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
722 | | - | |
| 723 | + | |
| 724 | + | |
723 | 725 | | |
724 | 726 | | |
725 | 727 | | |
| |||
0 commit comments