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-cli-dmi.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-cli-dmi.c')
-rw-r--r-- | com32/hdt/hdt-cli-dmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli-dmi.c b/com32/hdt/hdt-cli-dmi.c index 766a3cba..d00489bc 100644 --- a/com32/hdt/hdt-cli-dmi.c +++ b/com32/hdt/hdt-cli-dmi.c @@ -530,7 +530,7 @@ void show_dmi_memory_modules(int argc __unused, char** argv __unused, detect_dmi(hardware); more_printf("Memory Size : %lu MB (%lu KB)\n", - hardware->detected_memory_size>>10, + (hardware->detected_memory_size + (1<<9)) >>10, hardware->detected_memory_size); if ((hardware->dmi.memory_count <= 0) && (hardware->dmi.memory_module_count <= 0)) { |