po5 / evafast

mpv script for hybrid fastforward and seeking
41 stars 1 forks source link

Round values in timer target speed check #12

Closed christoph-heinrich closed 1 year ago

christoph-heinrich commented 1 year ago

math.floor() can result in one value being off by 1 because one was just barely below the whole integer while the other one was not. (floating point numbers \o/) Adding 0.5 for actual rounding avoids that problem.

Closes #9

po5 commented 1 year ago

No way you found a fix!!! Thanks.