diff options
author | Bekcpear <ink2.0plus@gmail.com> | 2017-05-30 22:04:59 +0800 |
---|---|---|
committer | Bekcpear <ink2.0plus@gmail.com> | 2017-06-16 15:35:51 +0800 |
commit | 8267e5e007109e979311784e62502012b1e0d4fd (patch) | |
tree | 06a16b2642ac605382b7aa11f7b153ebcaac08e6 /apps/files/js | |
parent | 82e263ed043b38b76b54e8eb41c0fe282798017d (diff) | |
download | nextcloud-server-8267e5e007109e979311784e62502012b1e0d4fd.tar.gz nextcloud-server-8267e5e007109e979311784e62502012b1e0d4fd.zip |
Fix uploadrate value of 'original-title' attribute
The unit of `data.bitrate` is bit, but the argument unit of
`humanFileSize` function is byte, so it should be divided by 8.
Signed-off-by: Yaojin Qian <i@ume.ink>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/file-upload.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 87b6a76d0ec..2fa3122a008 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -1027,7 +1027,7 @@ OC.Uploader.prototype = _.extend({ t('files', '{loadedSize} of {totalSize} ({bitrate})' , { loadedSize: humanFileSize(data.loaded), totalSize: humanFileSize(data.total), - bitrate: humanFileSize(data.bitrate) + '/s' + bitrate: humanFileSize(data.bitrate / 8) + '/s' }) ); $('#uploadprogressbar').progressbar('value', progress); |