mirror of https://github.com/zlatinb/muwire
do not add 1 to the number of pieces, let the HEAD request tell the value
parent
1717a90020
commit
d243e1cd31
|
@ -398,8 +398,6 @@ class MainFrameView {
|
||||||
closureColumn(header : trans("REMOTE_PIECES"), type : String, read : { row ->
|
closureColumn(header : trans("REMOTE_PIECES"), type : String, read : { row ->
|
||||||
int pieces = row.uploader.getTotalPieces()
|
int pieces = row.uploader.getTotalPieces()
|
||||||
int done = row.uploader.getDonePieces()
|
int done = row.uploader.getDonePieces()
|
||||||
if (row.uploader.getProgress() == 100)
|
|
||||||
done++
|
|
||||||
int percent = -1
|
int percent = -1
|
||||||
if ( pieces != 0 ) {
|
if ( pieces != 0 ) {
|
||||||
percent = (done * 100) / pieces
|
percent = (done * 100) / pieces
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class UploadServlet extends HttpServlet {
|
||||||
this.progress = progress;
|
this.progress = progress;
|
||||||
this.downloader = downloader;
|
this.downloader = downloader;
|
||||||
this.b64 = b64;
|
this.b64 = b64;
|
||||||
this.remotePieces = progress == 100 ? remotePieces + 1 : remotePieces;
|
this.remotePieces = remotePieces;
|
||||||
this.totalPieces = totalPieces;
|
this.totalPieces = totalPieces;
|
||||||
this.speed = speed;
|
this.speed = speed;
|
||||||
this.browse = browse;
|
this.browse = browse;
|
||||||
|
|
Loading…
Reference in New Issue