Show
Ignore:
Timestamp:
11/23/09 14:16:32 (2 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
219c2a3ea81917d4c80814dce2c58f85dbcf2cf9
Parents:
bb88c66722eedcf2a2e5fb03051c6cef4c9ad5a3
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-11-23T15:16:32Z+0100
Message:

hdt: Rounding detected memory size

Impact: Visual

Rounding values to have more realistic values

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/hdt/hdt-cli-memory.c

    rbb88c6 r06a7af  
    4343        memsize=memsize_e820(map,count); 
    4444        reset_more_printf(); 
    45         more_printf("Detected RAM                       : %lu MiB (%lu KiB)\n",memsize>>10,memsize); 
     45        more_printf("Detected RAM                       : %lu MiB (%lu KiB)\n",(memsize+(1<<9))>>10,memsize); 
    4646        more_printf("BIOS-provided physical RAM e820 map:\n"); 
    4747        for (int i = 0; i < count; i++) {