]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cast to int #32837 35022/head
authorMarkus Zeller <git@markuszeller.com>
Sun, 12 Jun 2022 13:01:22 +0000 (15:01 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 8 Nov 2022 10:01:36 +0000 (10:01 +0000)
Signed-off-by: Markus Zeller <git@markuszeller.com>
apps/files/lib/Command/Scan.php

index cfab4a42932c4a3f5fae1acd661184b803618d97..074d2bfe0c7488dc81e69728abbb9595bf0cc304 100644 (file)
@@ -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);
        }