top: fix misapplied 'rh analysis #2: top' patch

This commit is contained in:
Jim Warner 2011-10-19 03:33:04 -05:00 committed by Craig Small
parent 3f7468082a
commit 82c0dfd877

View File

@ -3386,8 +3386,10 @@ static void summary_show (void) {
int shift = 0;
/*** hotplug_acclimated ***/
if (kb_main_total > 9999999) { which = N_txt(AMT_megabyte_txt); shift = 10; }
if (kb_main_total > 9999999999) { which = N_txt(AMT_gigabyte_txt); shift = 20; }
if (kb_main_total > 9999999)
{ which = N_txt(AMT_megabyte_txt); shift = 10; }
if (kb_main_total > 9999999999ull)
{ which = N_txt(AMT_gigabyte_txt); shift = 20; }
show_special(0, fmtmk(N_unq(MEMORY_lines_fmt)
, which, mkM(total), mkM(used), mkM(free), mkM(buffers)