Skip to content

Commit

Permalink
[Fix]: scan-app-data conversion
Browse files Browse the repository at this point in the history
Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935.

See #34283 (comment)
and #35935 (comment).

Closes #34283.

Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
  • Loading branch information
2 people authored and backportbot-nextcloud[bot] committed Jan 23, 2023
1 parent 143eaa4 commit 66ccaa4
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 <joel.devbox@protonmail.com>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Erik Wouters <6179932+EWouters@users.noreply.github.com>
*
* @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 66ccaa4

Please sign in to comment.