Changeset 11670


Ignore:
Timestamp:
Jan 13, 2011, 11:50:58 AM (11 years ago)
Author:
jordan
Message:

(trunk gtk) #3896 "Redundant call to tr_torrentStat() in tr_core_update()" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r11585 r11670  
    529529
    530530static gboolean
    531 isTorrentActive( tr_torrent * tor )
    532 {
    533     const tr_stat * st = tr_torrentStat( tor );
     531isTorrentActive( const tr_stat * st )
     532{
    534533    return ( st->peersSendingToUs > 0 )
    535534        || ( st->peersGettingFromUs > 0 )
     
    886885                                       MC_SPEED_UP,      st->pieceUploadSpeed_KBps,
    887886                                       MC_SPEED_DOWN,    st->pieceDownloadSpeed_KBps,
    888                                        MC_ACTIVE,        isTorrentActive( tor ),
     887                                       MC_ACTIVE,        isTorrentActive( st ),
    889888                                       MC_ACTIVITY,      st->activity,
    890889                                       MC_FINISHED,      st->finished,
     
    13071306    tor = tr_torrent_handle( gtor );
    13081307    st = tr_torrentStat( tor );
    1309     newActive = isTorrentActive( tor );
     1308    newActive = isTorrentActive( st );
    13101309    newActivity = st->activity;
    13111310    newFinished = st->finished;
Note: See TracChangeset for help on using the changeset viewer.