* [perf story #69871] Adjust code.
This commit is contained in:
@@ -4784,8 +4784,7 @@ class executionModel extends model
|
||||
$task->totalEstimate = $task->estimate;
|
||||
$task->totalConsumed = $task->consumed;
|
||||
$task->totalLeft = $task->left;
|
||||
$task->isParent = ($task->parent < 0);
|
||||
$task->parent = $task->parent <= 0 || !isset($tasks[$task->parent]) ? 'pid' . (string)$task->execution : 'tid' . (string)$task->parent;
|
||||
$task->parent = $task->parent > 0 && isset($tasks[$task->parent]) ? "tid{$task->parent}" : "pid{$task->execution}";
|
||||
$task->progress = ($task->consumed + $task->left) == 0 ? 0 : round($task->consumed / ($task->consumed + $task->left), 2) * 100;
|
||||
$task->begin = $task->estStarted;
|
||||
$task->end = $task->deadline;
|
||||
|
||||
Reference in New Issue
Block a user