(qt) keep the size display the same as the gtk client
This commit is contained in:
parent
5ad7ed550f
commit
5701ac82e0
|
@ -76,12 +76,12 @@ Utils :: sizeToString( double size )
|
|||
else if( size < (int64_t)GIGABYTE_FACTOR )
|
||||
{
|
||||
displayed_size = (double)size / MEGABYTE_FACTOR;
|
||||
str = tr( "%L1 MiB" ).arg( displayed_size, 0, 'f', 2 );
|
||||
str = tr( "%L1 MiB" ).arg( displayed_size, 0, 'f', 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
displayed_size = (double) size / GIGABYTE_FACTOR;
|
||||
str = tr( "%L1 GiB" ).arg( displayed_size, 0, 'f', 3 );
|
||||
str = tr( "%L1 GiB" ).arg( displayed_size, 0, 'f', 1 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue