Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rounding to volume percentage display #493

Merged
merged 1 commit into from Apr 17, 2021

Conversation

Kemyt
Copy link
Contributor

@Kemyt Kemyt commented Apr 17, 2021

Shown percentage is sometimes lower than actual because float number is cast to u16 without rounding, so for example 4.99_f64 becomes 4_u16. It's seen for example when pressing "volup 5" when volume is at 0%. When you do that the bar displays 4%.
image

Shows percentage is sometimes lower than actual because float number
is cast to u16 without rounding, so for example 4.99_f64 becomes 4_u16
@hrkfdn hrkfdn merged commit aa8e9f1 into hrkfdn:master Apr 17, 2021
@hrkfdn
Copy link
Owner

hrkfdn commented Apr 17, 2021

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants