aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/ScanAppData.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Command/ScanAppData.php')
-rw-r--r--apps/files/lib/Command/ScanAppData.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php
index 04c347afe6b..244293ae70d 100644
--- a/apps/files/lib/Command/ScanAppData.php
+++ b/apps/files/lib/Command/ScanAppData.php
@@ -216,10 +216,9 @@ class ScanAppData 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);
}
/**