mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix using float printf on integer GB
This commit is contained in:
parent
ac968a17ae
commit
e75b54db02
@ -72,10 +72,10 @@ std::string getDriveBytes(u64 bytes)
|
||||
sniprintf(buffer, sizeof(buffer), STR_N_MB.c_str(), (int)bytes >> 20);
|
||||
|
||||
else if (bytes >= 0x40000000 && bytes < 0x10000000000)
|
||||
snprintf(buffer, sizeof(buffer), STR_N_GB.c_str(), getGbNumber(bytes));
|
||||
snprintf(buffer, sizeof(buffer), STR_N_GB_FLOAT.c_str(), getGbNumber(bytes));
|
||||
|
||||
else
|
||||
snprintf(buffer, sizeof(buffer), STR_N_TB.c_str(), getTbNumber(bytes));
|
||||
snprintf(buffer, sizeof(buffer), STR_N_TB_FLOAT.c_str(), getTbNumber(bytes));
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
@ -154,8 +154,9 @@ STRING(1_BYTE, "1 Byte")
|
||||
STRING(N_BYTES, "%d Bytes")
|
||||
STRING(N_KB, "%d KB")
|
||||
STRING(N_MB, "%d MB")
|
||||
STRING(N_GB, "%.1f GB")
|
||||
STRING(N_TB, "%.1f TB")
|
||||
STRING(N_GB, "%d GB")
|
||||
STRING(N_GB_FLOAT, "%.1f GB")
|
||||
STRING(N_TB_FLOAT, "%.1f TB")
|
||||
|
||||
// Language names
|
||||
STRING(JAPANESE, "Japanese")
|
||||
|
||||
@ -145,8 +145,9 @@ A_APPLY_B_CANCEL=(\A apply, \B cancel)
|
||||
N_BYTES=%d Bytes
|
||||
N_KB=%d KB
|
||||
N_MB=%d MB
|
||||
N_GB=%.1f GB
|
||||
N_TB=%.1f TB
|
||||
N_GB=%d GB
|
||||
N_GB_FLOAT=%.1f GB
|
||||
N_TB_FLOAT=%.1f TB
|
||||
|
||||
JAPANESE=Japanese
|
||||
ENGLISH=English
|
||||
|
||||
Loading…
Reference in New Issue
Block a user