Skip to content

Commit

Permalink
Merge pull request #32838 from markuszeller/bugfix/32837/implicitFloa…
Browse files Browse the repository at this point in the history
…tConversion

Cast to int
  • Loading branch information
szaimen authored Nov 8, 2022
2 parents 0f3fdce + 15289f9 commit 175ac79
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 @@ -306,7 +306,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
* @return string
*/
protected function formatExecTime() {
$secs = round($this->execTime);
$secs = (int)round($this->execTime);
# convert seconds into HH:MM:SS form
return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ((int)($secs / 60) % 60), $secs % 60);
}
Expand Down

0 comments on commit 175ac79

Please sign in to comment.