diff options
author | cld4h <20869428+cld4h@users.noreply.github.com> | 2022-04-22 10:00:00 +0800 |
---|---|---|
committer | cld4h <20869428+cld4h@users.noreply.github.com> | 2022-04-26 14:22:41 +0800 |
commit | 553239c0834f4089d7ad9b75691264d41de9e069 (patch) | |
tree | 01d96b4f0c1c4366654fafd974e19b7fbf7e6f31 /apps/files | |
parent | dd736fa1da93a2cb65611cefa209da703f263775 (diff) | |
download | nextcloud-server-553239c0834f4089d7ad9b75691264d41de9e069.tar.gz nextcloud-server-553239c0834f4089d7ad9b75691264d41de9e069.zip |
Fix issue #31692 of occ files:scan
occ files:scan reports error "Implicit conversion from float XXX to int loses precision"
Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com>
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 { |