mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Use corresponding SI/IEC units
This commit is contained in:
parent
8feccffec0
commit
9ffa923da6
1 changed files with 2 additions and 2 deletions
|
@ -627,12 +627,12 @@ namespace gui
|
|||
usz divisor = 1;
|
||||
#if defined(__APPLE__)
|
||||
constexpr multiplier = 1000;
|
||||
static const QString s_units[]{"B", "kB", "MB", "GB", "TB", "PB"};
|
||||
#else
|
||||
constexpr multiplier = 1024;
|
||||
static const QString s_units[]{"B", "KiB", "MiB", "GiB", "TiB", "PiB"};
|
||||
#endif
|
||||
|
||||
static const QString s_units[]{"B", "KB", "MB", "GB", "TB", "PB"};
|
||||
|
||||
while (byte_unit < std::size(s_units) - 1 && size / divisor >= multiplier)
|
||||
{
|
||||
byte_unit++;
|
||||
|
|
Loading…
Add table
Reference in a new issue