Skip to content

Commit e184a49

Browse files
committed
ACPT-860: Indexation time is calculated incorrectly
1 parent d08a2e0 commit e184a49

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/code/Magento/Indexer/Console/Command/IndexerReindexCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
102102
$output->write($indexer->getTitle() . ' index ');
103103

104104
$startTime = new \DateTimeImmutable();
105-
$startTimeOriginal = microtime(true);
106105
$indexerConfig = $this->getConfig()->getIndexer($indexer->getId());
107106
$sharedIndex = $indexerConfig['shared_index'] ?? null;
108107

@@ -113,7 +112,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
113112
$this->sharedIndexesComplete[] = $sharedIndex;
114113
}
115114
}
116-
$resultTime = microtime(true) - $startTimeOriginal;
117115
$endTime = new \DateTimeImmutable();
118116
$interval = $startTime->diff($endTime);
119117
$days = $interval->format('%d');
@@ -124,9 +122,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
124122
$output->writeln(
125123
__('has been rebuilt successfully in %1:%2:%3', $hours, $minutes, $seconds)
126124
);
127-
$output->writeln(
128-
__('%indexer index has been rebuilt successfully ORIGINALLY in %time', ['indexer' => $indexer->getTitle(), 'time' => gmdate('H:i:s', (int) $resultTime)])
129-
);
130125
} catch (\Throwable $e) {
131126
$output->writeln('process error during indexation process:');
132127
$output->writeln($e->getMessage());

0 commit comments

Comments
 (0)