diff options
author | Bekcpear <ink2.0plus@gmail.com> | 2017-05-30 20:58:24 +0800 |
---|---|---|
committer | Bekcpear <ink2.0plus@gmail.com> | 2017-06-16 15:33:10 +0800 |
commit | 82e263ed043b38b76b54e8eb41c0fe282798017d (patch) | |
tree | 5b4a8356c4f64d53e05a15866b0c7b11cdf9477b /ocs-provider/index.php | |
parent | 1d227d83c02783ab9e8ed7d63e51771719e25ae3 (diff) | |
download | nextcloud-server-82e263ed043b38b76b54e8eb41c0fe282798017d.tar.gz nextcloud-server-82e263ed043b38b76b54e8eb41c0fe282798017d.zip |
Fix upload remaining time
The upload remaining time is always 'a few second' whatever a big or a
small file uploading.
This commit fixes it. The `new Date().getMilliseconds()` only return a
three digits number. When time arrived the next second, the millisecond
start from ZERO again. So `new Date().getTime()` is the righe choice.
And remaining time variables shoule be initialized when the file starts
uploading, otherwise the remaining time of a new upload will always be
'Infinity years' until you refresh the page.
Signed-off-by: Yaojin Qian <i@ume.ink>
Diffstat (limited to 'ocs-provider/index.php')
0 files changed, 0 insertions, 0 deletions