Skip to content

Commit 137386e

Browse files
committed
Fix TimeHistogramPerTimeline to count chunks not components
The histogram was incorrectly incrementing/decrementing by event.num_components() instead of 1. This caused timelines with 'wide' archetypes (many components) to appear far more active than timelines with few components, breaking timeline selection and navigation logic. Fixes the bug introduced in dd55e00.
1 parent be5b59c commit 137386e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/store/re_entity_db/src/time_histogram_per_timeline.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ impl ChunkStoreSubscriber for TimeHistogramPerTimeline {
149149
.collect_vec();
150150
match event.kind {
151151
ChunkStoreDiffKind::Addition => {
152-
self.add(&times, event.num_components() as _);
152+
self.add(&times, 1);
153153
}
154154
ChunkStoreDiffKind::Deletion => {
155-
self.remove(&times, event.num_components() as _);
155+
self.remove(&times, 1);
156156
}
157157
}
158158
}

0 commit comments

Comments
 (0)