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:
parent
82e263ed04
commit
8267e5e007
|
@ -1027,7 +1027,7 @@ OC.Uploader.prototype = _.extend({
|
||||||
t('files', '{loadedSize} of {totalSize} ({bitrate})' , {
|
t('files', '{loadedSize} of {totalSize} ({bitrate})' , {
|
||||||
loadedSize: humanFileSize(data.loaded),
|
loadedSize: humanFileSize(data.loaded),
|
||||||
totalSize: humanFileSize(data.total),
|
totalSize: humanFileSize(data.total),
|
||||||
bitrate: humanFileSize(data.bitrate) + '/s'
|
bitrate: humanFileSize(data.bitrate / 8) + '/s'
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
$('#uploadprogressbar').progressbar('value', progress);
|
$('#uploadprogressbar').progressbar('value', progress);
|
||||||
|
|
Loading…
Reference in New Issue