mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(trunk libT) minor code formatting
This commit is contained in:
parent
2d3fdc4235
commit
f5815a89bf
1 changed files with 5 additions and 5 deletions
|
@ -93,9 +93,9 @@ getFiles( const char * dir,
|
||||||
static uint32_t
|
static uint32_t
|
||||||
bestPieceSize( uint64_t totalSize )
|
bestPieceSize( uint64_t totalSize )
|
||||||
{
|
{
|
||||||
const uint32_t GiB = 1073741824;
|
|
||||||
const uint32_t MiB = 1048576;
|
|
||||||
const uint32_t KiB = 1024;
|
const uint32_t KiB = 1024;
|
||||||
|
const uint32_t MiB = 1048576;
|
||||||
|
const uint32_t GiB = 1073741824;
|
||||||
|
|
||||||
if( totalSize >= ( 2 * GiB ) ) return 2 * MiB;
|
if( totalSize >= ( 2 * GiB ) ) return 2 * MiB;
|
||||||
if( totalSize >= ( 1 * GiB ) ) return 1 * MiB;
|
if( totalSize >= ( 1 * GiB ) ) return 1 * MiB;
|
||||||
|
|
Loading…
Reference in a new issue