Ticket #6124: aboutsysramreportingfix.patch
File aboutsysramreportingfix.patch, 641 bytes (added by , 14 years ago) |
---|
-
src/apps/aboutsystem/AboutSystem.cpp
1673 1673 MemUsageToString(char string[], size_t size, system_info* info) 1674 1674 { 1675 1675 snprintf(string, size, B_TRANSLATE("%d MB total, %d MB used (%d%%)"), 1676 int( info->max_pages / 256.0f + 0.5f),1677 int( info->used_pages / 256.0f + 0.5f),1676 int(ceil(info->max_pages / 256.0f + 0.5f)), 1677 int(ceil(info->used_pages / 256.0f + 0.5f)), 1678 1678 int(100 * info->used_pages / info->max_pages)); 1679 1679 1680 1680 return string;