We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa866c commit 3415523Copy full SHA for 3415523
1 file changed
src/volume_pane.rs
@@ -45,9 +45,9 @@ impl VolumePane {
45
let volume = candle.volume.unwrap_or_default();
46
47
let volume_percent_of_max = volume / max_volume;
48
- let b = volume_percent_of_max * self.height as f64;
+ let ratio = volume_percent_of_max * self.height as f64;
49
50
- if y < b.floor() as i64 {
+ if y < ratio.ceil() as i64 {
51
return self.colorize(&candle.get_type(), &self.unicode_fill.to_string());
52
}
53
0 commit comments