From b8923acf1de0ed0b04e259017f73f7fe2b569daf Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Sat, 22 Oct 2022 13:54:40 +0000 Subject: [PATCH 1/2] * fix burn chart precision --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index c72f62c2a5..006e025df4 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4261,7 +4261,7 @@ class executionModel extends model $days = count($dateList) - 1; $rate = $days ? $firstTime / $days : ''; $baselineJSON = '['; - foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * (float)$rate, 1) . ','; + foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * (float)$rate, 2) . ','; $baselineJSON = rtrim($baselineJSON, ',') . ']'; $chartData['labels'] = $this->report->convertFormat($dateList, DT_DATE5); From ec454fb5ce651a9c59d6bc309ed35862c59daa5b Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Sat, 22 Oct 2022 13:57:28 +0000 Subject: [PATCH 2/2] * increase baseline accuracy for burn chart. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 006e025df4..dfebc4e9be 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4261,7 +4261,7 @@ class executionModel extends model $days = count($dateList) - 1; $rate = $days ? $firstTime / $days : ''; $baselineJSON = '['; - foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * (float)$rate, 2) . ','; + foreach($dateList as $i => $date) $baselineJSON .= round(($days - $i) * (float)$rate, 3) . ','; $baselineJSON = rtrim($baselineJSON, ',') . ']'; $chartData['labels'] = $this->report->convertFormat($dateList, DT_DATE5);