mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Fix order of magnitude on the display histogram.
This commit is contained in:
parent
d0e575f317
commit
b6eb08751c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user