Fix floating point error for poll expiry #294

Merged
floatingghost merged 1 commit 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
Fix floating point error for poll expiry
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
47fc082fb9
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
mel referenced this pull request from a commit 2024-05-15 22:36:01 +00:00
Sign in to join this conversation.
No description provided.