Merge pull request #35935 from EWouters/patch-1

[Fix]: scan-app-data conversion
pull/36321/head
Simon L 3 years ago committed by GitHub
commit 078203afea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/files/lib/Command/ScanAppData.php

@ -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
*
@ -239,7 +240,7 @@ class ScanAppData extends Base {
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 {

Loading…
Cancel
Save