From: Markus Zeller Date: Sun, 12 Jun 2022 13:01:22 +0000 (+0200) Subject: Cast to int #32837 X-Git-Tag: v24.0.8rc1~56^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09cdccb3d3f280dff231f8d574c25e99d09cc058;p=nextcloud-server.git Cast to int #32837 Signed-off-by: Markus Zeller --- diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index cfab4a42932..074d2bfe0c7 100644 --- a/apps/files/lib/Command/Scan.php +++ b/apps/files/lib/Command/Scan.php @@ -289,7 +289,7 @@ class Scan extends Base { * @return string */ protected function formatExecTime() { - $secs = round($this->execTime); + $secs = (int)round($this->execTime); # convert seconds into HH:MM:SS form return sprintf('%02d:%02d:%02d', (int)($secs / 3600), ((int)($secs / 60) % 60), $secs % 60); }