TrevorSatori / kronos

Terminal Music Player Written In Rust
GNU General Public License v3.0
50 stars 9 forks source link

fix: overflow in percentage calculation #31

Closed lautarodragan closed 1 month ago

lautarodragan commented 2 months ago

Happens when the playing progress reaches ~7 minutes.


Update: I realized this can be even simpler if we use Gauge.ratio instead of Gauge.percent, and created an alternative PR using that approach: https://github.com/TrevorSatori/kronos/pull/32.

I prefer that one over this one, but I'm leaving both open — which one do you think is best?