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() {
|
public int speed() {
|
||||||
|
if (finished)
|
||||||
|
return 0
|
||||||
|
|
||||||
if (speedArray.length != core.muOptions.speedSmoothSeconds) {
|
if (speedArray.length != core.muOptions.speedSmoothSeconds) {
|
||||||
speedArray = new int[core.muOptions.speedSmoothSeconds]
|
speedArray = new int[core.muOptions.speedSmoothSeconds]
|
||||||
speedPos = 0
|
speedPos = 0
|
||||||
|
|
|
@ -683,6 +683,9 @@ class MainFrameModel {
|
||||||
|
|
||||||
public int speed() {
|
public int speed() {
|
||||||
|
|
||||||
|
if (finished)
|
||||||
|
return 0
|
||||||
|
|
||||||
if (speedArray.length != core.muOptions.speedSmoothSeconds) {
|
if (speedArray.length != core.muOptions.speedSmoothSeconds) {
|
||||||
speedArray = new int[core.muOptions.speedSmoothSeconds]
|
speedArray = new int[core.muOptions.speedSmoothSeconds]
|
||||||
speedPos = 0
|
speedPos = 0
|
||||||
|
|
Loading…
Reference in New Issue