Преглед изворни кода

Fix-13911-occ-files-scan-elapsed-time

Signed-off-by: Joel S <joel.devbox@protonmail.com>
tags/v16.0.0alpha1
Joel S пре 5 година
родитељ
комит
f29b092a76
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3
    4
      apps/files/lib/Command/Scan.php

+ 3
- 4
apps/files/lib/Command/Scan.php Прегледај датотеку

@@ -289,10 +289,9 @@ class Scan extends Base {
* @return string
*/
protected function formatExecTime() {
list($secs, ) = explode('.', sprintf("%.1f", $this->execTime));

# if you want to have microseconds add this: . '.' . $tens;
return date('H:i:s', $secs);
$secs = round($this->execTime);
# convert seconds into HH:MM:SS form
return sprintf('%02d:%02d:%02d', ($secs/3600),($secs/60%60), $secs%60);
}

/**

Loading…
Откажи
Сачувај