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:
James Cloos 2012-02-06 00:00:00 -05:00 committed by Craig Small
parent ce1410a51a
commit 95f2201730

View File

@ -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; }