diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-06-10 16:20:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 16:20:00 +0200 |
commit | e6e18620002d1da5238e43b9026ca529ae2bda8e (patch) | |
tree | 68eba7ca9a9b6b9368274cdbaae843ec396350d2 /apps/files | |
parent | dcfdcf991f7bd7c3f8c9ce91a44088838bcb6657 (diff) | |
parent | 553239c0834f4089d7ad9b75691264d41de9e069 (diff) | |
download | nextcloud-server-e6e18620002d1da5238e43b9026ca529ae2bda8e.tar.gz nextcloud-server-e6e18620002d1da5238e43b9026ca529ae2bda8e.zip |
Merge pull request #32059 from cld4h/patch-1
Fix issue #31692 of occ files:scan
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Command/Scan.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index 47f1caabc78..0a7a53dc0bf 100644 --- a/apps/files/lib/Command/Scan.php +++ b/apps/files/lib/Command/Scan.php @@ -291,7 +291,7 @@ class Scan 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), $secs % 60); } protected function reconnectToDatabase(OutputInterface $output): Connection { |