Skip to content

Commit

Permalink
self-review:
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Jan 18, 2024
1 parent 894dbba commit 75ff4ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions crates/re_space_view_time_series/src/visualizer_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,16 +469,16 @@ impl Aggregator for MinMaxAggregator {
MinMaxAggregator::MinMax => {
acc_min.value = f64::min(acc_min.value, point.value);
acc_min.attrs.radius = f32::min(acc_min.attrs.radius, point.attrs.radius);
acc_max.value = f64::max(acc_min.value, point.value);
acc_max.attrs.radius = f32::max(acc_min.attrs.radius, point.attrs.radius);
acc_max.value = f64::max(acc_max.value, point.value);
acc_max.attrs.radius = f32::max(acc_max.attrs.radius, point.attrs.radius);
}
MinMaxAggregator::Min => {
acc_min.value = f64::min(acc_min.value, point.value);
acc_min.attrs.radius = f32::min(acc_min.attrs.radius, point.attrs.radius);
}
MinMaxAggregator::Max => {
acc_max.value = f64::max(acc_min.value, point.value);
acc_max.attrs.radius = f32::max(acc_min.attrs.radius, point.attrs.radius);
acc_max.value = f64::max(acc_max.value, point.value);
acc_max.attrs.radius = f32::max(acc_max.attrs.radius, point.attrs.radius);
}
}

Expand Down

0 comments on commit 75ff4ff

Please sign in to comment.