Skip to content

Commit

Permalink
Changed splash to show system RAM in MB if < 1 GB
Browse files Browse the repository at this point in the history
Modified the splash screen to show system RAM in MB rather than GB if there
is less than 1024MB of RAM available.  So, instead of showing "0GB", it would
show, e.g.,  "923MB".

	modified:   src/display.c
  • Loading branch information
tbowers7 committed Sep 29, 2017
1 parent 8083361 commit a78300a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,17 @@ int display_splash(int input){
switch(SD_SYS){
case(50):
sprintf(sd_systype," Linux");
sprintf(sd_memsize," with %dGB RAM",(int)floor(SYS_RAM/1024.));
if(SYS_RAM < 1024.)
sprintf(sd_memsize," with %dMB RAM",(int)floor(SYS_RAM));
else
sprintf(sd_memsize," with %dGB RAM",(int)floor(SYS_RAM/1024.));
break;
case(51):
sprintf(sd_systype," Mac");
sprintf(sd_memsize," with %dGB RAM",(int)floor(SYS_RAM/1024.));
if(SYS_RAM < 1024.)
sprintf(sd_memsize," with %dMB RAM",(int)floor(SYS_RAM));
else
sprintf(sd_memsize," with %dGB RAM",(int)floor(SYS_RAM/1024.));
break;
case(52):
sprintf(sd_systype,"n unrecognized");
Expand Down

0 comments on commit a78300a

Please sign in to comment.