Browse Source

flooring max value

pull/1/head
wahyu 7 months ago
parent
commit
71681241f5
  1. 2
      view-mode/function/overlaySCurve.js

2
view-mode/function/overlaySCurve.js

@ -128,7 +128,7 @@ function getProgressLine() {
realDurations = cumulativeRealDurations; realDurations = cumulativeRealDurations;
} }
if (maxReal > 100 || maxPlan > 100) { if (Math.floor(maxReal) > 100 || Math.floor(maxPlan) > 100) {
plannedDurations = plannedDurations.map((item) => { plannedDurations = plannedDurations.map((item) => {
return item/maxPlan*100; return item/maxPlan*100;
}) })

Loading…
Cancel
Save