Skip to content

Commit

Permalink
Fix issue #31692 of occ files:scan
Browse files Browse the repository at this point in the history
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 <richard@steinmetz.cloud>
  • Loading branch information
st3iny committed Jun 12, 2022
1 parent ba27191 commit 23777c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Command/Scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 23777c9

Please sign in to comment.