Browse Source

Merge pull request 'flooring max value' (#4) from dev-wahyu into master

Reviewed-on: ibnu/generic-ospro-gantt#4
pull/1/head
farhantock 9 months ago
parent
commit
591b54652b
  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