Changeset 10838


Ignore:
Timestamp:
Jun 24, 2010, 5:44:58 PM (12 years ago)
Author:
charles
Message:

(2.0x) #3340 "tr_moveFile() can be faster" -- fixed for 2.01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/utils.c

    r10736 r10838  
    13951395    struct stat st;
    13961396    off_t bytesLeft;
    1397     off_t buflen;
     1397    const off_t buflen = 1024 * 128; /* 128 KiB buffer */
    13981398
    13991399    /* make sure the old file exists */
     
    14301430    in = tr_open_file_for_scanning( oldpath );
    14311431    out = tr_open_file_for_writing( newpath );
    1432     buflen = stat( newpath, &st ) ? 4096 : st.st_blksize;
    14331432    buf = tr_valloc( buflen );
    14341433    while( bytesLeft > 0 )
Note: See TracChangeset for help on using the changeset viewer.