summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorEWouters <6179932+EWouters@users.noreply.github.com>2023-01-01 22:07:42 +0100
committerEWouters <6179932+EWouters@users.noreply.github.com>2023-01-03 13:52:34 +0100
commit3a9173cbaca810e63f664a73ac739dd837a342da (patch)
tree59b0666f808920b1b08ec698c6ba51021d26e5b9 /apps/files/lib
parente4e20bf40ad8ca139655b36a6efa2b1710ae50f0 (diff)
downloadnextcloud-server-3a9173cbaca810e63f664a73ac739dd837a342da.tar.gz
nextcloud-server-3a9173cbaca810e63f664a73ac739dd837a342da.zip
[Fix]: scan-app-data conversion
Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935. See https://github.com/nextcloud/server/issues/34283#issuecomment-1288075064 and https://github.com/nextcloud/server/pull/35935#discussion_r1059905594. Closes #34283. Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Command/ScanAppData.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php
index a5e9d99f804..63e13733b2a 100644
--- a/apps/files/lib/Command/ScanAppData.php
+++ b/apps/files/lib/Command/ScanAppData.php
@@ -9,6 +9,7 @@
* @author Joel S <joel.devbox@protonmail.com>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Roeland Jago Douma <roeland@famdouma.nl>
+ * @author Erik Wouters <6179932+EWouters@users.noreply.github.com>
*
* @license GNU AGPL version 3 or any later version
*
@@ -239,7 +240,7 @@ class ScanAppData 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), (int)$secs % 60);
}
protected function reconnectToDatabase(OutputInterface $output): Connection {