a couple of more swarm speed removals

This commit is contained in:
Mitchell Livingston 2009-11-22 01:12:44 +00:00
parent a8fc8b7707
commit be85dc0fac
6 changed files with 0 additions and 12 deletions

View File

@ -178,7 +178,6 @@
sizeWhenDone | number | tr_stat
startDate | number | tr_stat
status | number | tr_stat
swarmSpeed (K/s) | number | tr_stat
trackers | array (see below) | n/a
trackerStats | array (see below) | n/a
totalSize | number | tr_info

View File

@ -1291,8 +1291,6 @@ readBtMessage( tr_peermsgs * msgs, struct evbuffer * inbuf, size_t inlen )
return READ_ERR;
}
updatePeerProgress( msgs );
tr_rcTransferred( &msgs->torrent->swarmSpeed,
msgs->torrent->info.pieceSize );
break;
case BT_BITFIELD:

View File

@ -624,8 +624,6 @@ torrentRealInit( tr_torrent * tor, const tr_ctor * ctor )
tr_torrentInitFilePieces( tor );
tr_rcConstruct( &tor->swarmSpeed );
tr_sha1( tor->obfuscatedHash, "req2", 4,
info->hash, SHA_DIGEST_LENGTH,
NULL );
@ -1259,8 +1257,6 @@ freeTorrent( tr_torrent * tor )
tr_cpDestruct( &tor->completion );
tr_rcDestruct( &tor->swarmSpeed );
tr_announcerUnsubscribe( tor->tiers, tor->tiersSubscription );
tr_announcerRemoveTorrent( session->announcer, tor );

View File

@ -136,8 +136,6 @@ struct tr_torrent
tr_session * session;
tr_info info;
struct tr_ratecontrol swarmSpeed;
int magicNumber;
tr_stat_errtype error;

View File

@ -55,7 +55,6 @@ Torrent :: myProperties[] =
{ ID, "id", QVariant::Int, INFO, },
{ UPLOAD_SPEED, "rateUpload", QVariant::Int, STAT } /* B/s */,
{ DOWNLOAD_SPEED, "rateDownload", QVariant::Int, STAT }, /* B/s */
{ SWARM_SPEED, "swarmSpeed", QVariant::Int, STAT_EXTRA },/* KB/s */
{ DOWNLOAD_DIR, "downloadDir", QVariant::String, STAT },
{ ACTIVITY, "status", QVariant::Int, STAT },
{ NAME, "name", QVariant::String, INFO },

View File

@ -85,7 +85,6 @@ class Torrent: public QObject
ID,
UPLOAD_SPEED,
DOWNLOAD_SPEED,
SWARM_SPEED,
DOWNLOAD_DIR,
ACTIVITY,
NAME,
@ -251,7 +250,6 @@ class Torrent: public QObject
int connectedPeersAndWebseeds( ) const { return connectedPeers( ) + getInt( WEBSEEDS_SENDING_TO_US ); }
Speed downloadSpeed( ) const { return Speed::fromBps( getInt( DOWNLOAD_SPEED ) ); }
Speed uploadSpeed( ) const { return Speed::fromBps( getInt( UPLOAD_SPEED ) ); }
Speed swarmSpeed( ) const { return Speed::fromKbps( getInt( SWARM_SPEED ) ); }
double getVerifyProgress( ) const { return getDouble( PERCENT_VERIFIED ); }
bool hasFileSubstring( const QString& substr ) const;
bool hasTrackerSubstring( const QString& substr ) const;