From bd0190cfdecc697dc2220b987fe4b508572dce91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20K=C3=BChn?= Date: Wed, 6 May 2026 19:12:35 +0200 Subject: [PATCH] Always floor buffer value to avoid fractional display Co-Authored-By: Claude Sonnet 4.6 --- public/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index e6991f4..dc89f7b 100644 --- a/public/app.js +++ b/public/app.js @@ -230,7 +230,7 @@ function calc(g){ var pd=Math.ceil(remaining/Math.max(1,dl)); var st=Math.max(0,pd-tdone); var expectedPast=Math.min(t,g.days)*g.daily; - var buf=(past-expectedPast)+Math.max(0,tdone-g.daily); + var buf=Math.floor((past-expectedPast)+Math.max(0,tdone-g.daily)); var deficit=Math.min(0,buf); var surplus=Math.max(0,buf); var dailyDelta=pd-g.daily;