Fix floating point error for poll expiry #294

Merged
floatingghost merged 1 commits from xarvos/pleroma-fe:fix-poll-expire into develop 2023-03-30 09:49:39 +00:00
Contributor

Previous code multiply with 0.001 before multiplication which leads to a
floating point error. By changing it to division by 1000 after
multiplication this is avoided.

This resolves #290

Previous code multiply with 0.001 before multiplication which leads to a floating point error. By changing it to division by 1000 after multiplication this is avoided. This resolves #290
xarvos added 1 commit 2023-03-24 13:48:52 +00:00
ci/woodpecker/pr/woodpecker Pipeline was successful Details
47fc082fb9
Fix floating point error for poll expiry
Previous code multiply with 0.001 before multiplication which leads to a
floating point error.  By changing it to division by 1000 after
multiplication this is avoided.
Author
Contributor

By the way, can you tag releases? latest develop doesn't work for me and it was hard to find latest stable release without tags.

By the way, can you tag releases? latest develop doesn't work for me and it was hard to find latest stable release without tags.

oh interesting, good spot!

thanks

and yes i'll make sure to tag releases, didn't know anyone relied on that, just tagged 2023.03

oh interesting, good spot! thanks and yes i'll make sure to tag releases, didn't know anyone relied on that, just tagged 2023.03
floatingghost merged commit 5911777aa2 into develop 2023-03-30 09:49:39 +00:00
floatingghost deleted branch fix-poll-expire 2023-03-30 09:49:39 +00:00
Sign in to join this conversation.
No description provided.