top: postpone the switch from Kb to Mb in summary display
The mem and swap lines have enough room to show eight significant digits, so switch to showing MB when >=100MB, not >=10MB. The extra detail is valuable; it should not be elided. Signed-off-by: James Cloos <cloos@jhcloos.com> Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
ce1410a51a
commit
95f2201730
@ -3417,7 +3417,7 @@ static void summary_show (void) {
|
||||
int shift = 0;
|
||||
|
||||
/*** hotplug_acclimated ***/
|
||||
if (kb_main_total > 9999999)
|
||||
if (kb_main_total > 99999999)
|
||||
{ which = N_txt(AMT_megabyte_txt); shift = 10; }
|
||||
if (kb_main_total > 9999999999ull)
|
||||
{ which = N_txt(AMT_gigabyte_txt); shift = 20; }
|
||||
|
Loading…
Reference in New Issue
Block a user