(trunk web) show pieces info in the inspector

This commit is contained in:
Kevin Glowacz
2009-10-31 02:19:45 +00:00
parent f6c6ebdf70
commit 4cf0d0986a
3 changed files with 10 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ Torrent._ErrTrackerError = 2;
Torrent._ErrLocalError = 3;
Torrent._StaticFields = [ 'addedDate', 'comment', 'creator', 'dateCreated',
'hashString', 'id', 'isPrivate', 'name', 'totalSize' ]
'hashString', 'id', 'isPrivate', 'name', 'totalSize', 'pieceCount', 'pieceSize' ]
Torrent._DynamicFields = [ 'downloadedEver', 'error', 'errorString', 'eta',
'haveUnchecked', 'haveValid', 'leftUntilDone', 'peersConnected',
'peersGettingFromUs', 'peersSendingToUs', 'rateDownload', 'rateUpload',
@@ -46,6 +46,8 @@ Torrent.prototype =
this._hashString = data.hashString;
this._date = data.addedDate;
this._size = data.totalSize;
this._pieceCount = data.pieceCount;
this._pieceSize = data.pieceSize;
this._comment = data.comment;
this._creator = data.creator;
this._creator_date = data.dateCreated;