Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Zeller <git@markuszeller.com>2022-06-12 16:01:22 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-11-08 13:08:23 +0300
commitcffa3673f14b4a09c3a9e5901af4c9b4fc438c2f (patch)
tree8b371459ddcdd67cc04c46e16d6f20a1d449d5d4
parent18515f6332dde5872ba47df924f0a4c92976ab55 (diff)
Cast to int #32837
Signed-off-by: Markus Zeller <git@markuszeller.com>
-rw-r--r--apps/files/lib/Command/Scan.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php
index f1596fa98a5..710c76de493 100644
--- a/apps/files/lib/Command/Scan.php
+++ b/apps/files/lib/Command/Scan.php
@@ -306,7 +306,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);
}