From 71681241f5ee9171a6b3af14e4ab929e337223dc Mon Sep 17 00:00:00 2001 From: wahyu Date: Thu, 29 Feb 2024 14:15:59 +0700 Subject: [PATCH] flooring max value --- view-mode/function/overlaySCurve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-mode/function/overlaySCurve.js b/view-mode/function/overlaySCurve.js index 5e4af6d..d75f4b9 100644 --- a/view-mode/function/overlaySCurve.js +++ b/view-mode/function/overlaySCurve.js @@ -128,7 +128,7 @@ function getProgressLine() { realDurations = cumulativeRealDurations; } - if (maxReal > 100 || maxPlan > 100) { + if (Math.floor(maxReal) > 100 || Math.floor(maxPlan) > 100) { plannedDurations = plannedDurations.map((item) => { return item/maxPlan*100; })