Ignore:
Timestamp:
Oct 24, 2010, 1:08:08 AM (11 years ago)
Author:
charles
Message:

(trunk libT) #3662 "libtransmission cpu optimization: fewer calls to tr_time_msec()" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r11301 r11349  
    7575    char             filename[TR_PATH_MAX];
    7676    int              fd;
    77     uint64_t         date;
     77    time_t           date;
    7878};
    7979
     
    475475    if( ( match != NULL ) && ( !doWrite || match->isWritable ) )
    476476    {
    477         match->date = tr_time_msec( );
     477        match->date = tr_time( );
    478478        return match->fd;
    479479    }
     
    533533    while( winner < 0 )
    534534    {
    535         uint64_t date = tr_time_msec( ) + 1;
     535        time_t date = tr_time( ) + 1;
    536536
    537537        /* look for the file that's been open longest */
     
    583583    o->torrentId = torrentId;
    584584    o->fileNum = fileNum;
    585     o->date = tr_time_msec( );
     585    o->date = tr_time( );
    586586    return o->fd;
    587587}
Note: See TracChangeset for help on using the changeset viewer.