* Finish executionstatisticblock metric data.

This commit is contained in:
wangyuting
2023-07-25 17:23:16 +08:00
parent a031dc65be
commit 978e5cd889
2 changed files with 21 additions and 5 deletions
@@ -93,7 +93,7 @@ $getExecutionInfo = function(array $executions, string $blockNavID, bool $longBl
$execution->totalEstimate = rand(0, 1000);
$execution->totalConsumed = rand(0, 1000);
$execution->totalLeft = rand(0, $execution->totalEstimate);
$execution->progress = round($execution->totalLeft / $execution->totalEstimate * 100);
$execution->progress = $execution->totalEstimate ? round($execution->totalLeft / $execution->totalEstimate * 100) : 0;
$execution->doneStory = rand(0, 1000);
$execution->totalStory = rand(0, 1000);
$execution->totalTask = rand(0, 1000);