diff options
author | Simon L <szaimen@e.mail.de> | 2023-01-23 17:43:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 17:43:14 +0100 |
commit | 078203afeab667cbe1ffbcfa76a635e1bf59b9d3 (patch) | |
tree | 727e501cd19272267b27b9bc2fdeb536baee6f9f /apps/files | |
parent | 3eda055c68146008c7ba460b2a4d50614d6aab05 (diff) | |
parent | 3a9173cbaca810e63f664a73ac739dd837a342da (diff) | |
download | nextcloud-server-078203afeab667cbe1ffbcfa76a635e1bf59b9d3.tar.gz nextcloud-server-078203afeab667cbe1ffbcfa76a635e1bf59b9d3.zip |
Merge pull request #35935 from EWouters/patch-1
[Fix]: scan-app-data conversion
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Command/ScanAppData.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php index a5e9d99f804..63e13733b2a 100644 --- a/apps/files/lib/Command/ScanAppData.php +++ b/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 { |