From 2b492cdb6ec1b2ca29019af807612bea0ed44bb7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 22 Nov 2009 01:03:36 +0000 Subject: [PATCH] #2592 remove swarm speed from libtransmission --- libtransmission/rpcimpl.c | 2 -- libtransmission/torrent.c | 1 - libtransmission/transmission.h | 5 ----- 3 files changed, 8 deletions(-) diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index b1f0f19d0..e4eca0394 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -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" ) ) { diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index fe38354d2..0a49c7199 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 ); diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h index 504fc0d38..6d70478f8 100644 --- a/libtransmission/transmission.h +++ b/libtransmission/transmission.h @@ -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 */