Changeset 5623


Ignore:
Timestamp:
Apr 15, 2008, 1:27:28 PM (14 years ago)
Author:
charles
Message:

maybe fix the losing-progress bug in the new bencoded resume. fix a couple of log messages too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/resume.c

    r5622 r5623  
    153153    {
    154154        tr_tordbg( tor, "Couldn't load DND flags.  dnd list (%p) has %d children; torrent has %d files",
    155                    ( list ? list->val.l.count : -1 ), (int)n );
     155                   list, ( list ? list->val.l.count : -1 ), (int)n );
    156156    }
    157157
     
    261261    m = tr_bencDictAddList( p, KEY_PROGRESS_MTIMES, n );
    262262    for( i=0; i<n; ++i ) {
    263         if( tr_torrentIsFileChecked( tor, i ) )
     263        if( !tr_torrentIsFileChecked( tor, i ) )
    264264            mtimes[i] = ~(time_t)0; /* force a recheck */
    265265        tr_bencListAddInt( m, mtimes[i] );
     
    304304                        tr_torrentSetFileChecked( tor, i, TRUE );
    305305                    else {
    306                         tr_tordbg( tor, "File #%d needs to be verified - times %lu and %lu don't match", t, curMTimes[i] );
     306                        tr_tordbg( tor, "File #%d needs to be verified - times %lu and %lu don't match", i, t, curMTimes[i] );
    307307                        tr_torrentSetFileChecked( tor, i, FALSE );
    308308                    }
Note: See TracChangeset for help on using the changeset viewer.