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

1 Commits

Author SHA1 Message Date
Ngô Ngọc Đức Huy 47fc082fb9
Fix floating point error for poll expiry
ci/woodpecker/pr/woodpecker Pipeline was successful Details
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.
2023-03-24 20:48:02 +07:00