1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 11:51:27 +00:00

update upload-list zindex (#2784)

This commit is contained in:
杨顺强
2019-01-08 11:53:53 +08:00
committed by Daniel Pan
parent 93a2be4ada
commit ec24a6c20c
3 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class FileUploader extends React.Component {
isUploadProgressDialogShow: false,
isUploadRemindDialogShow: false,
currentResumableFile: null,
uploadBitrate: 0
uploadBitrate: '0'
};
this.notifiedFolders = [];
@@ -224,7 +224,7 @@ class FileUploader extends React.Component {
if (this.timestamp) {
let timeDiff = (now - this.timestamp);
if (timeDiff < this.bitrateInterval) {
return this.state.uploadBitrate;
return this.state.uploadBitrate;
}
uploadBitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
}