diff options
author | Erwan Velu <erwan.velu@free.fr> | 2009-11-23 15:16:32 +0100 |
---|---|---|
committer | Erwan Velu <erwan.velu@free.fr> | 2009-11-23 15:16:32 +0100 |
commit | 06a7af2737be560f651f72e36c424affbba5fc43 (patch) | |
tree | 2de5246a31855e19b93ca586f4d70e04074e8a95 /com32/hdt/hdt-menu-summary.c | |
parent | bb88c66722eedcf2a2e5fb03051c6cef4c9ad5a3 (diff) | |
download | syslinux-06a7af2737be560f651f72e36c424affbba5fc43.tar.gz |
hdt: Rounding detected memory size
Impact: Visual
Rounding values to have more realistic values
Diffstat (limited to 'com32/hdt/hdt-menu-summary.c')
-rw-r--r-- | com32/hdt/hdt-menu-summary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/hdt/hdt-menu-summary.c b/com32/hdt/hdt-menu-summary.c index 2cc0c8b9..bd10cb23 100644 --- a/com32/hdt/hdt-menu-summary.c +++ b/com32/hdt/hdt-menu-summary.c @@ -99,10 +99,10 @@ void compute_summarymenu(struct s_my_menu *menu, struct s_hardware *hardware) add_item("", "", OPT_SEP, "", 0); snprintf(buffer, sizeof buffer, "Memory Size : %lu MiB (%lu KiB)", - hardware->detected_memory_size>>10, + (hardware->detected_memory_size + (1<<9))>>10, hardware->detected_memory_size); snprintf(statbuffer, sizeof statbuffer, "Detected Memory Size: %lu MiB (%lu KiB)", - hardware->detected_memory_size>>10, hardware->detected_memory_size); + (hardware->detected_memory_size+(1<<9))>>10, hardware->detected_memory_size); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; |