Try enabling the BIG strings now the unsigned long long is in effect
This commit is contained in:
parent
20b9b00b41
commit
376a2730a8
@ -122,15 +122,11 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg,
|
||||
***************************************/
|
||||
|
||||
char* humanSize(unsigned long long size, char* str) {
|
||||
/* This only works on 64 bit platforms so I commented it out for now */
|
||||
/*
|
||||
if (size > 1125899906842624L) {
|
||||
snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
|
||||
} else if (size > 1099511627776L) {
|
||||
snprintf(str, 7, "%.1fT", (float)size / 1099511627776L);
|
||||
*/
|
||||
|
||||
if (size > 1073741824L) {
|
||||
} else if (size > 1073741824L) {
|
||||
snprintf(str, 7, "%.1fG", (float)size / 1073741824L);
|
||||
} else if (size > 1048576L) {
|
||||
snprintf(str, 7, "%.1fM", (float)size / 1048576L);
|
||||
|
Loading…
x
Reference in New Issue
Block a user