if the uploader is finished show 0 speed

pull/53/head
Zlatin Balevsky 2020-10-07 06:12:03 +01:00
parent a210c7679c
commit 1106399f8b
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,9 @@ class UploadsModel {
}
public int speed() {
if (finished)
return 0
if (speedArray.length != core.muOptions.speedSmoothSeconds) {
speedArray = new int[core.muOptions.speedSmoothSeconds]
speedPos = 0

View File

@ -683,6 +683,9 @@ class MainFrameModel {
public int speed() {
if (finished)
return 0
if (speedArray.length != core.muOptions.speedSmoothSeconds) {
speedArray = new int[core.muOptions.speedSmoothSeconds]
speedPos = 0