aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-11-08 10:53:13 +0100
committerGitHub <noreply@github.com>2022-11-08 10:53:13 +0100
commit175ac79f97aaed351a192ba18f1d10e0ec939c49 (patch)
tree1884a48f846533e08af8da9048234936a7371e21 /apps/files/lib/Command
parent0f3fdced4f214558fd3240bfaf868b661a8de8a2 (diff)
parent15289f9737ac0b30e2f617e310691766282c27c7 (diff)
downloadnextcloud-server-175ac79f97aaed351a192ba18f1d10e0ec939c49.tar.gz
nextcloud-server-175ac79f97aaed351a192ba18f1d10e0ec939c49.zip
Merge pull request #32838 from markuszeller/bugfix/32837/implicitFloatConversion
Cast to int
Diffstat (limited to 'apps/files/lib/Command')
-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);
}