Skip to content

Commit

Permalink
Update apps/files/lib/Command/ScanAppData.php
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
  • Loading branch information
EWouters and st3iny authored Jan 3, 2023
1 parent 5cc8dbe commit 77c0f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Command/ScanAppData.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected function showSummary($headers, $rows, OutputInterface $output) {
protected function formatExecTime() {
$secs = round($this->execTime);
# convert seconds into HH:MM:SS form
return sprintf('%02d:%02d:%02d', intdiv($secs, 3600), intdiv($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 {
Expand Down

0 comments on commit 77c0f94

Please sign in to comment.