(trunk web) fix _leftUntilDone not updating when it hits 0
This commit is contained in:
parent
710d8b7fc2
commit
59810c0e11
|
@ -287,7 +287,6 @@ Torrent.prototype =
|
|||
if (data.comment) this._comment = data.comment;
|
||||
if (data.creator) this._creator = data.creator;
|
||||
if (data.dateCreated) this._creator_date = data.dateCreated;
|
||||
if (data.leftUntilDone) this._leftUntilDone = data.leftUntilDone;
|
||||
if (data.sizeWhenDone) this._sizeWhenDone = data.sizeWhenDone;
|
||||
if (data.path) this._torrent_file = data.path;//FIXME
|
||||
if (data.name) {
|
||||
|
@ -299,6 +298,7 @@ Torrent.prototype =
|
|||
this._id = data.id;
|
||||
this._completed = data.haveUnchecked + data.haveValid;
|
||||
this._verified = data.haveValid;
|
||||
this._leftUntilDone = data.leftUntilDone;
|
||||
this._download_total = data.downloadedEver;
|
||||
this._upload_total = data.uploadedEver;
|
||||
this._download_speed = data.rateDownload;
|
||||
|
|
Loading…
Reference in New Issue