Skip to content

Commit

Permalink
Merge pull request #35935 from EWouters/patch-1
Browse files Browse the repository at this point in the history
[Fix]: scan-app-data conversion
  • Loading branch information
szaimen authored Jan 23, 2023
2 parents 3eda055 + 3a9173c commit 078203a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files/lib/Command/ScanAppData.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @author Joel S <[email protected]>
* @author Morris Jobke <[email protected]>
* @author Roeland Jago Douma <[email protected]>
* @author Erik Wouters <[email protected]>
*
* @license GNU AGPL version 3 or any later version
*
Expand Down Expand Up @@ -239,7 +240,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), (int)$secs % 60);
}

protected function reconnectToDatabase(OutputInterface $output): Connection {
Expand Down

0 comments on commit 078203a

Please sign in to comment.