Skip to content

Commit

Permalink
don't scale to bins[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed May 31, 2024
1 parent f23c179 commit 4ab502a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/visualizers/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ where
let nr_bins = bins.len();

let mut largest = 0.0;
for i in 0..nr_bins {
// don't scale to bins[0]
for i in 1..nr_bins {
if bins[i] > largest {
largest = bins[i];
}
Expand Down

0 comments on commit 4ab502a

Please sign in to comment.