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>
This commit is contained in:
Bekcpear 2017-05-30 22:04:59 +08:00
parent 82e263ed04
commit 8267e5e007
1 changed files with 1 additions and 1 deletions

View File

@ -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);