mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
#2592 remove swarm speed from libtransmission
This commit is contained in:
parent
aa908ab864
commit
2b492cdb6e
3 changed files with 0 additions and 8 deletions
|
@ -558,8 +558,6 @@ addField( const tr_torrent * tor, tr_benc * d, const char * key )
|
|||
tr_bencDictAddInt( d, key, st->startDate );
|
||||
else if( tr_streq( key, keylen, "status" ) )
|
||||
tr_bencDictAddInt( d, key, st->activity );
|
||||
else if( tr_streq( key, keylen, "swarmSpeed" ) )
|
||||
tr_bencDictAddInt( d, key, (int)( st->swarmSpeed * 1024 ) );
|
||||
else if( tr_streq( key, keylen, "trackers" ) )
|
||||
addTrackers( inf, tr_bencDictAddList( d, key, inf->trackerCount ) );
|
||||
else if( tr_streq( key, keylen, "trackerStats" ) ) {
|
||||
|
|
|
@ -921,7 +921,6 @@ tr_torrentStat( tr_torrent * tor )
|
|||
|
||||
now = tr_date( );
|
||||
d = tr_peerMgrGetWebseedSpeed( tor, now );
|
||||
s->swarmSpeed = tr_rcRate( &tor->swarmSpeed, now );
|
||||
s->rawUploadSpeed = tr_bandwidthGetRawSpeed ( tor->bandwidth, now, TR_UP );
|
||||
s->pieceUploadSpeed = tr_bandwidthGetPieceSpeed( tor->bandwidth, now, TR_UP );
|
||||
s->rawDownloadSpeed = d + tr_bandwidthGetRawSpeed ( tor->bandwidth, now, TR_DOWN );
|
||||
|
|
|
@ -1719,11 +1719,6 @@ typedef struct tr_stat
|
|||
or 0 if you can't */
|
||||
time_t manualAnnounceTime;
|
||||
|
||||
/** A very rough estimate in KiB/s of how quickly data is being
|
||||
passed around between all the peers we're connected to.
|
||||
Don't put too much weight in this number. */
|
||||
float swarmSpeed;
|
||||
|
||||
#define TR_RATIO_NA -1
|
||||
#define TR_RATIO_INF -2
|
||||
/** TR_RATIO_INF, TR_RATIO_NA, or a regular ratio */
|
||||
|
|
Loading…
Reference in a new issue