decrease rounding precision

This commit is contained in:
Luc Mcgrady 2025-05-23 16:22:00 +01:00
parent 0ba35cb57d
commit 627214512b
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -114,8 +114,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
const absPercent = Math.abs(percent);
if (absPercent > 100) {
return Math.round(percent / 50) * 50;
} else if (absPercent > 10) {
return Math.round(percent / 5) * 5;
} else if (absPercent >= 1) {
return parseFloat(percent.toPrecision(1));
} else {