Changeset 11565


Ignore:
Timestamp:
Dec 21, 2010, 11:09:26 PM (11 years ago)
Author:
charles
Message:

(trunk libT) remove some of the lazy-verify debug messages.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r11543 r11565  
    23672367
    23682368    /* if we've never checked this piece, then it needs to be checked */
    2369     if( !inf->pieces[p].timeChecked ) {
    2370         tr_tordbg( tor, "[LAZY] piece %zu needs to be tested because it's never been tested", (size_t)p );
     2369    if( !inf->pieces[p].timeChecked )
    23712370        return TRUE;
    2372     }
    23732371
    23742372    /* If we think we've completed one of the files in this piece,
     
    23762374     * then it needs to be rechecked */
    23772375    tr_ioFindFileLocation( tor, p, 0, &f, &unused );
    2378     for( ; f < inf->fileCount && pieceHasFile( p, &inf->files[f] ); ++f ) {
    2379         if( tr_cpFileIsComplete( &tor->completion, f ) ) {
    2380             if( getFileMTime( tor, f ) > inf->pieces[p].timeChecked ) {
    2381                 tr_tordbg( tor, "[LAZY] piece %zu needs to be tested because file %zu mtime is newer than check time %zu", (size_t)p, (size_t)f, (size_t)inf->pieces[p].timeChecked );
     2376    for( ; f < inf->fileCount && pieceHasFile( p, &inf->files[f] ); ++f )
     2377        if( tr_cpFileIsComplete( &tor->completion, f ) )
     2378            if( getFileMTime( tor, f ) > inf->pieces[p].timeChecked )
    23822379                return TRUE;
    2383             }
    2384         }
    2385     }
    2386 
    2387     tr_tordbg( tor, "[LAZY] piece %zu does not need to be tested", (size_t)p );
     2380
    23882381    return FALSE;
    23892382}
  • trunk/libtransmission/verify.c

    r11506 r11565  
    5656    SHA1_Init( &sha );
    5757
    58     tr_tordbg( tor, "%s", "[LAZY] verifying torrent..." );
     58    tr_tordbg( tor, "%s", "verifying torrent..." );
    5959    tr_torrentSetChecked( tor, 0 );
    6060    while( !*stopFlag && ( pieceIndex < tor->info.pieceCount ) )
     
    140140        }
    141141    }
    142     tr_tordbg( tor, "%s", "[LAZY] DONE verifying torrent..." );
    143142
    144143    /* cleanup */
     
    149148    /* stopwatch */
    150149    end = tr_time( );
    151     tr_tordbg( tor, "it took %d seconds to verify %"PRIu64" bytes (%"PRIu64" bytes per second)",
     150    tr_tordbg( tor, "Verification is done.  It took %d seconds to verify %"PRIu64" bytes (%"PRIu64" bytes per second)",
    152151               (int)(end-begin), tor->info.totalSize,
    153152               (uint64_t)(tor->info.totalSize/(1+(end-begin))) );
Note: See TracChangeset for help on using the changeset viewer.