diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2022-06-12 19:57:07 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2022-06-12 19:57:07 +0200 |
commit | 23777c997039f3508ff35471c8feb6b978360d91 (patch) | |
tree | 94ddc8184cfb2c289a8b082a7fda2fcf86c7179f /apps/files/lib | |
parent | ba27191e03618c24c0f48f430755c6c623f86dd3 (diff) | |
download | nextcloud-server-23777c997039f3508ff35471c8feb6b978360d91.tar.gz nextcloud-server-23777c997039f3508ff35471c8feb6b978360d91.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>
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/files/lib')
-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..7b2ad199ba4 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 { |