fix download progress

This commit is contained in:
SpikeHD
2022-05-09 23:16:28 -07:00
parent 9e89a03e73
commit 635a6a5abb
2 changed files with 6 additions and 5 deletions

View File

@@ -32,9 +32,9 @@ export default class ProgressBar extends React.Component<IProps, IState> {
const intv = setInterval(() => {
const prog = this.props.downloadManager.getTotalAverage()
this.setState({
average: parseInt(prog?.avergae || 0, 10),
average: parseInt(prog?.average || 0, 10),
files: prog?.files,
total: prog?.total || 0,
total: prog?.totalSize || 0,
})
}, 500)
}