Fix occ files:scan-app-data elapsed time

Signed-off-by: Joel S <joel.devbox@protonmail.com>
This commit is contained in:
Joel S 2019-02-22 20:55:24 +05:30
parent f29b092a76
commit 27aafa77db
2 changed files with 4 additions and 5 deletions

View File

@ -216,10 +216,9 @@ class ScanAppData extends Base {
* @return string * @return string
*/ */
protected function formatExecTime() { protected function formatExecTime() {
list($secs, ) = explode('.', sprintf("%.1f", $this->execTime)); $secs = round($this->execTime);
# convert seconds into HH:MM:SS form
# if you want to have microseconds add this: . '.' . $tens; return sprintf('%02d:%02d:%02d', ($secs/3600), ($secs/60%60), $secs%60);
return date('H:i:s', $secs);
} }
/** /**