mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 09:37:29 -04:00
[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>
This commit is contained in:
parent
f3bf55afa0
commit
75e2431560
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue