diff options
author | Joel S <joel.devbox@protonmail.com> | 2019-02-22 19:59:03 +0530 |
---|---|---|
committer | Joel S <joel.devbox@protonmail.com> | 2019-02-22 19:59:03 +0530 |
commit | f29b092a76c6dbf961ec3a7a5722729b9b1f882d (patch) | |
tree | 4f5fc4f023e19f30c71c72ff2a595f98ac51dc8a /apps/files/lib | |
parent | 2083103d0ba8ce41489632ebe240f6dde51baccc (diff) | |
download | nextcloud-server-f29b092a76c6dbf961ec3a7a5722729b9b1f882d.tar.gz nextcloud-server-f29b092a76c6dbf961ec3a7a5722729b9b1f882d.zip |
Fix-13911-occ-files-scan-elapsed-time
Signed-off-by: Joel S <joel.devbox@protonmail.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Command/Scan.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index 4d83d764928..3c2ab716cec 100644 --- a/apps/files/lib/Command/Scan.php +++ b/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); } /** |