Fix order of magnitude on the display histogram.

This commit is contained in:
Herbert Wolverson 2024-03-15 13:27:12 -05:00
parent d0e575f317
commit b6eb08751c

View File

@ -413,7 +413,7 @@ pub fn rtt_histogram() -> BusResponse {
.collect();
let samples = valid_samples.len() as u32;
if samples > 0 {
let median = valid_samples[valid_samples.len() / 2] as f32;
let median = valid_samples[valid_samples.len() / 2] as f32 / 10.0;
let median = f32::min(200.0, median);
let column = median as usize;
result[usize::min(column, 19)] += 1;