From 23777c997039f3508ff35471c8feb6b978360d91 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Sun, 12 Jun 2022 19:57:07 +0200 Subject: [PATCH] Fix issue #31692 of occ files:scan occ files:scan reports error "Implicit conversion from float XXX to int loses precision" Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com> Signed-off-by: Richard Steinmetz --- apps/files/lib/Command/Scan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index 47f1caabc78e7..7b2ad199ba4b9 100644 --- a/apps/files/lib/Command/Scan.php +++ b/apps/files/lib/Command/Scan.php @@ -291,7 +291,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) { protected function formatExecTime() { $secs = round($this->execTime); # convert seconds into HH:MM:SS form - return sprintf('%02d:%02d:%02d', ($secs / 3600), ($secs / 60 % 60), $secs % 60); + return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ((int)($secs / 60) % 60), $secs % 60); } protected function reconnectToDatabase(OutputInterface $output): Connection {