Changeset 8090 for trunk/libtransmission/torrent.c
- Timestamp:
- Mar 26, 2009, 6:06:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r8021 r8090 758 758 } 759 759 760 int 760 tr_bool 761 761 tr_torrentCanManualUpdate( const tr_torrent * tor ) 762 762 { … … 780 780 ? &tor->stats 781 781 : tr_torrentStat( tor ); 782 } 783 784 void 785 tr_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 ); 782 792 } 783 793 … … 1181 1191 tor->completeness = tr_cpGetStatus( &tor->completion ); 1182 1192 tr_torrentSaveResume( tor ); 1183 tor->startDate = t ime( NULL );1193 tor->startDate = tor->anyDate = time( NULL ); 1184 1194 tr_trackerStart( tor->tracker ); 1185 1195 tr_peerMgrStartTorrent( tor ); … … 1456 1466 tr_trackerCompleted( tor->tracker ); 1457 1467 1458 tor->doneDate = t ime( NULL );1468 tor->doneDate = tor->anyDate = time( NULL ); 1459 1469 } 1460 1470 … … 1918 1928 1919 1929 tor->activityDate = t; 1930 1931 if( tor->anyDate < tor->activityDate ) 1932 tor->anyDate = tor->activityDate; 1920 1933 } 1921 1934 … … 1928 1941 1929 1942 tor->doneDate = t; 1943 1944 if( tor->anyDate < tor->doneDate ) 1945 tor->anyDate = tor->doneDate; 1930 1946 } 1931 1947
Note: See TracChangeset
for help on using the changeset viewer.