From f5815a89bf5c532a6ab4f3cf8314ceaadaf13217 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Fri, 24 Jun 2011 19:30:25 +0000 Subject: [PATCH] (trunk libT) minor code formatting --- libtransmission/makemeta.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libtransmission/makemeta.c b/libtransmission/makemeta.c index 8a3c4b2da..202440250 100644 --- a/libtransmission/makemeta.c +++ b/libtransmission/makemeta.c @@ -93,16 +93,16 @@ getFiles( const char * dir, static uint32_t bestPieceSize( uint64_t totalSize ) { - const uint32_t GiB = 1073741824; - const uint32_t MiB = 1048576; const uint32_t KiB = 1024; + const uint32_t MiB = 1048576; + const uint32_t GiB = 1073741824; - if( totalSize >= ( 2 * GiB ) ) return 2 * MiB; - if( totalSize >= ( 1 * GiB ) ) return 1 * MiB; + if( totalSize >= ( 2 * GiB ) ) return 2 * MiB; + if( totalSize >= ( 1 * GiB ) ) return 1 * MiB; if( totalSize >= ( 512 * MiB ) ) return 512 * KiB; if( totalSize >= ( 350 * MiB ) ) return 256 * KiB; if( totalSize >= ( 150 * MiB ) ) return 128 * KiB; - if( totalSize >= ( 50 * MiB ) ) return 64 * KiB; + if( totalSize >= ( 50 * MiB ) ) return 64 * KiB; return 32 * KiB; /* less than 50 meg */ }