Changeset 6451


Ignore:
Timestamp:
Aug 7, 2008, 7:25:19 PM (13 years ago)
Author:
charles
Message:

#1155: when creating new torrents > 2 GiB, piece size should be 2 MiB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r6425 r6451  
    8989    static const uint64_t KiB = 1024;
    9090
    91     if( totalSize >=   (1*GiB) ) return MiB;
     91    if( totalSize >=   (2*GiB) ) return (2*MiB);
     92    if( totalSize >=   (1*GiB) ) return (1*MiB);
    9293    if( totalSize >= (512*MiB) ) return (512*KiB);
    9394    if( totalSize >= (350*MiB) ) return (256*KiB);
Note: See TracChangeset for help on using the changeset viewer.