mirror of https://github.com/zlatinb/muwire
if the uploader is finished show 0 speed
parent
a210c7679c
commit
1106399f8b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue