Changeset 5025


Ignore:
Timestamp:
Feb 13, 2008, 4:16:50 PM (14 years ago)
Author:
charles
Message:

(gtk) have "active" filter key off of (tr_stat.peersSendingToUs + tr_stat.peersGettingFromUs) rather than (rateUpload + rateDownload) so that a peer temporarily dropping to zero KiB/s won't drop it off the active filter.

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-cell-renderer.c

    r4997 r5025  
    125125{
    126126    char downStr[32], upStr[32];
    127     const int haveDown = ( torStat->rateDownload * 1024 ) > 1.0;
    128     const int haveUp = ( torStat->rateUpload * 1024 ) > 1.0;
     127    const int haveDown = torStat->peersSendingToUs > 0;
     128    const int haveUp = torStat->peersGettingFromUs > 0;
    129129
    130130    if( haveDown )
  • trunk/gtk/tr_window.c

    r5000 r5025  
    305305{
    306306    int ret = 0;
    307     const int haveDown = ((int)( torStat->rateDownload * 1024 )) > 1.0;
    308     const int haveUp = ((int)( torStat->rateUpload * 1024 )) > 1.0;
     307    const int haveDown = torStat->peersSendingToUs > 0;
     308    const int haveUp = torStat->peersGettingFromUs > 0;
    309309
    310310    switch( filter_mode )
Note: See TracChangeset for help on using the changeset viewer.