Skip to content

Commit 83d85bd

Browse files
authored
Merge pull request #35023 from nextcloud/backport/32838/stable25
[stable25] Cast to int
2 parents 18515f6 + cffa367 commit 83d85bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/lib/Command/Scan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
306306
* @return string
307307
*/
308308
protected function formatExecTime() {
309-
$secs = round($this->execTime);
309+
$secs = (int)round($this->execTime);
310310
# convert seconds into HH:MM:SS form
311311
return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ((int)($secs / 60) % 60), $secs % 60);
312312
}

0 commit comments

Comments
 (0)