NOT urgent
+---------+--------+--------------+
| Folders | Files | Elapsed time |
+---------+--------+--------------+
| 41936 | 454712 | 24:58:34 |
+---------+--------+--------------+
It tells me it took only 58 minutes. But it tooks more than one day. I suspect it ran 24:58:34
+---------+--------+--------------+
| Folders | Files | Elapsed time |
+---------+--------+--------------+
| 41936 | 454712 | 00:58:34 |
+---------+--------+--------------+
Operating system:
Centos 7
Web server:
Apache 2.4.6
Database:
MariaDB 10.0.37
PHP version:
PHP 7.2.14
Nextcloud version: (see Nextcloud admin page)
Nextcloud 15.0.2
Updated from an older Nextcloud/ownCloud or fresh install:
Fresh install
Where did you install Nextcloud from:
Nextcloud.com
Hi,
I just reviewed the code in apps/files/lib/Command/Scan.php.
The execution time is made by the difference between microTime at the beginning and microTime at the end and formatted using return date('H:i:s', $secs); line 295
So basically, the information that it was more than 24 hours already exists but the output is not able to handle that.
I see three possible fix:
Regards
Hi, can we do something like this?
Since $this->execTime contains total elapsed time in seconds, we can just format it as
$t = round($this->execTime);
return sprintf('%02d:%02d:%02d', ($t/3600),($t/60%60), $t%60);
Would this be sufficient?
Reference : https://stackoverflow.com/a/3534705
I didn't test that but looks good :+1:
Can I work on this issue ?
I have created a pull request #14342 to fix this issue. Kindly let me know if any changes are required.