Skip to content

Commit 65c3440

Browse files
committed
fix: cost_time
1 parent fef0762 commit 65c3440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProdScheduler/SchedulerComputeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function compute()
6262
if (isset($initialPhase)) {
6363
foreach ($forwardComputePhases as $i => $itemPhase) {
6464
$workerNum = $itemPhase['worker_num'];
65-
$costTime = $itemPhase['cost_time'];
65+
$costTime = $itemPhase['cost_time'] ?: 0;
6666

6767
list($singleCost, $totalCost) = $this->getPhaseCostTime($itemQty, $itemPhaseMaxCostTime, $costTime, $workerNum);
6868
if ($i === 0) {

0 commit comments

Comments
 (0)