]> granicus.if.org Git - procps-ng/commitdiff
top: fix misapplied 'rh analysis #2: top' patch
authorJim Warner <james.warner@comcast.net>
Wed, 19 Oct 2011 08:33:04 +0000 (03:33 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 22 Dec 2011 12:48:04 +0000 (23:48 +1100)
top/top.c

index 601415510d70507553501164ca7e5794abd6f93a..3d390b288f4cecb184048626f92ba9fc253ae63c 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -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)