diff --git a/gtk/torrent-cell-renderer.c b/gtk/torrent-cell-renderer.c index 8fe304de3..06cc7f717 100644 --- a/gtk/torrent-cell-renderer.c +++ b/gtk/torrent-cell-renderer.c @@ -124,8 +124,8 @@ static char* getShortTransferString( const tr_stat * torStat, char * buf, size_t buflen ) { char downStr[32], upStr[32]; - const int haveDown = ( torStat->rateDownload * 1024 ) > 1.0; - const int haveUp = ( torStat->rateUpload * 1024 ) > 1.0; + const int haveDown = torStat->peersSendingToUs > 0; + const int haveUp = torStat->peersGettingFromUs > 0; if( haveDown ) tr_strlspeed( downStr, torStat->rateDownload, sizeof(downStr) ); diff --git a/gtk/tr_window.c b/gtk/tr_window.c index 8fc00a404..1a471d556 100644 --- a/gtk/tr_window.c +++ b/gtk/tr_window.c @@ -304,8 +304,8 @@ checkFilterMode( filter_mode_t filter_mode, const tr_stat * torStat ) { int ret = 0; - const int haveDown = ((int)( torStat->rateDownload * 1024 )) > 1.0; - const int haveUp = ((int)( torStat->rateUpload * 1024 )) > 1.0; + const int haveDown = torStat->peersSendingToUs > 0; + const int haveUp = torStat->peersGettingFromUs > 0; switch( filter_mode ) {