Ignore:
Timestamp:
Mar 26, 2009, 6:06:54 PM (13 years ago)
Author:
charles
Message:

(trunk) rpc changes:

  1. new field "blocklist-size" to session-info, so RPC clients can know how big the blocklist is
  2. new method "torrent-reannounce" so RPC clients can ask the tracker for more peers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r8021 r8090  
    758758}
    759759
    760 int
     760tr_bool
    761761tr_torrentCanManualUpdate( const tr_torrent * tor )
    762762{
     
    780780         ? &tor->stats
    781781         : tr_torrentStat( tor );
     782}
     783
     784void
     785tr_torrentSetVerifyState( tr_torrent * tor, tr_verify_state state )
     786{
     787    assert( tr_isTorrent( tor ) );
     788    assert( state==TR_VERIFY_NONE || state==TR_VERIFY_WAIT || state==TR_VERIFY_NOW );
     789
     790    tor->verifyState = state;
     791    tor->anyDate = time( NULL );
    782792}
    783793
     
    11811191    tor->completeness = tr_cpGetStatus( &tor->completion );
    11821192    tr_torrentSaveResume( tor );
    1183     tor->startDate = time( NULL );
     1193    tor->startDate = tor->anyDate = time( NULL );
    11841194    tr_trackerStart( tor->tracker );
    11851195    tr_peerMgrStartTorrent( tor );
     
    14561466            tr_trackerCompleted( tor->tracker );
    14571467
    1458             tor->doneDate = time( NULL );
     1468            tor->doneDate = tor->anyDate = time( NULL );
    14591469        }
    14601470
     
    19181928
    19191929    tor->activityDate = t;
     1930
     1931    if( tor->anyDate < tor->activityDate )
     1932        tor->anyDate = tor->activityDate;
    19201933}
    19211934
     
    19281941
    19291942    tor->doneDate = t;
     1943
     1944    if( tor->anyDate < tor->doneDate )
     1945        tor->anyDate = tor->doneDate;
    19301946}
    19311947
Note: See TracChangeset for help on using the changeset viewer.