From 4cd69b1273f7df95c890dc0d314fa9907e4c9c18 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 6 Jun 2025 14:46:24 +0800 Subject: [PATCH] * [bug#63170] adjust task metric from bug. --- .../execution/hour/consume_of_frombug_task_in_execution.php | 2 +- .../calc/execution/scale/count_of_frombug_task_in_execution.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/metric/calc/execution/hour/consume_of_frombug_task_in_execution.php b/module/metric/calc/execution/hour/consume_of_frombug_task_in_execution.php index 127dc0e4c8..f37bfbade4 100644 --- a/module/metric/calc/execution/hour/consume_of_frombug_task_in_execution.php +++ b/module/metric/calc/execution/hour/consume_of_frombug_task_in_execution.php @@ -29,7 +29,7 @@ class consume_of_frombug_task_in_execution extends baseCalc public function calculate($row) { if($row->isParent == '1') return; - if($row->parent == '0' && $row->fromBug == 0) return; + if($row->fromBug == 0) return; if(!isset($this->result[$row->execution])) $this->result[$row->execution] = 0; $this->result[$row->execution] += $row->consumed; diff --git a/module/metric/calc/execution/scale/count_of_frombug_task_in_execution.php b/module/metric/calc/execution/scale/count_of_frombug_task_in_execution.php index 31ac84b3b7..7d1ea2f269 100755 --- a/module/metric/calc/execution/scale/count_of_frombug_task_in_execution.php +++ b/module/metric/calc/execution/scale/count_of_frombug_task_in_execution.php @@ -28,7 +28,7 @@ class count_of_frombug_task_in_execution extends baseCalc public function calculate($row) { - if($row->parent == '0' && $row->fromBug == 0) return; + if($row->fromBug == 0) return; if(!isset($this->result[$row->execution])) $this->result[$row->execution] = 0; $this->result[$row->execution] ++;