Skip to content

Commit 440ea5e

Browse files
authored
Fix issue #31692 of occ files:scan
occ files:scan reports error "Implicit conversion from float XXX to int loses precision"
1 parent dd736fa commit 440ea5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/lib/Command/Scan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
291291
protected function formatExecTime() {
292292
$secs = round($this->execTime);
293293
# convert seconds into HH:MM:SS form
294-
return sprintf('%02d:%02d:%02d', ($secs / 3600), ($secs / 60 % 60), $secs % 60);
294+
return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ( (int)($secs / 60) % 60), $secs % 60);
295295
}
296296

297297
protected function reconnectToDatabase(OutputInterface $output): Connection {

0 commit comments

Comments
 (0)