Changeset 12513


Ignore:
Timestamp:
Jun 24, 2011, 7:30:25 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) minor code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r12223 r12513  
    9494bestPieceSize( uint64_t totalSize )
    9595{
     96    const uint32_t KiB = 1024;
     97    const uint32_t MiB = 1048576;
    9698    const uint32_t GiB = 1073741824;
    97     const uint32_t MiB = 1048576;
    98     const uint32_t KiB = 1024;
    99 
    100     if( totalSize >=   ( 2 * GiB ) ) return 2 * MiB;
    101     if( totalSize >=   ( 1 * GiB ) ) return 1 * MiB;
     99
     100    if( totalSize >=   ( 2 * GiB ) ) return   2 * MiB;
     101    if( totalSize >=   ( 1 * GiB ) ) return   1 * MiB;
    102102    if( totalSize >= ( 512 * MiB ) ) return 512 * KiB;
    103103    if( totalSize >= ( 350 * MiB ) ) return 256 * KiB;
    104104    if( totalSize >= ( 150 * MiB ) ) return 128 * KiB;
    105     if( totalSize >=  ( 50 * MiB ) ) return 64 * KiB;
     105    if( totalSize >=  ( 50 * MiB ) ) return  64 * KiB;
    106106    return 32 * KiB;  /* less than 50 meg */
    107107}
Note: See TracChangeset for help on using the changeset viewer.