Skip to content

Commit 3a9173c

Browse files
EWoutersst3iny
andcommitted
[Fix]: scan-app-data conversion
Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935. See #34283 (comment) and #35935 (comment). Closes #34283. Co-authored-by: Richard Steinmetz <[email protected]> Signed-off-by: EWouters <[email protected]>
1 parent e4e20bf commit 3a9173c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files/lib/Command/ScanAppData.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @author Joel S <[email protected]>
1010
* @author Morris Jobke <[email protected]>
1111
* @author Roeland Jago Douma <[email protected]>
12+
* @author Erik Wouters <[email protected]>
1213
*
1314
* @license GNU AGPL version 3 or any later version
1415
*
@@ -239,7 +240,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
239240
protected function formatExecTime() {
240241
$secs = round($this->execTime);
241242
# convert seconds into HH:MM:SS form
242-
return sprintf('%02d:%02d:%02d', ($secs / 3600), ($secs / 60 % 60), $secs % 60);
243+
return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ((int)($secs / 60) % 60), (int)$secs % 60);
243244
}
244245

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

0 commit comments

Comments
 (0)