rh analysis #2: top
http://www.freelists.org/post/procps/Scan-results,5
This commit is contained in:
parent
d3786c5321
commit
cea2e7ca5b
6
top.c
6
top.c
@ -1412,7 +1412,7 @@ static void calibrate_fields (void) {
|
|||||||
f = w->pflgsall[i + w->begpflg];
|
f = w->pflgsall[i + w->begpflg];
|
||||||
w->procflgs[i] = f;
|
w->procflgs[i] = f;
|
||||||
#ifndef USE_X_COLHDR
|
#ifndef USE_X_COLHDR
|
||||||
if (P_MAXPFLGS < f) continue;
|
if (P_MAXPFLGS <= f) continue;
|
||||||
#endif
|
#endif
|
||||||
h = Fieldstab[f].head;
|
h = Fieldstab[f].head;
|
||||||
// oops, won't fit -- we're outta here...
|
// oops, won't fit -- we're outta here...
|
||||||
@ -1463,7 +1463,7 @@ static void calibrate_fields (void) {
|
|||||||
w->hdrcaplen += strlen(Caps_off) + strlen(w->capclr_msg);
|
w->hdrcaplen += strlen(Caps_off) + strlen(w->capclr_msg);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (P_MAXPFLGS < f) continue;
|
if (P_MAXPFLGS <= f) continue;
|
||||||
#endif
|
#endif
|
||||||
h = Fieldstab[f].head;
|
h = Fieldstab[f].head;
|
||||||
if (P_WCH == f) needpsdb = 1;
|
if (P_WCH == f) needpsdb = 1;
|
||||||
@ -3335,7 +3335,7 @@ static void summary_show (void) {
|
|||||||
|
|
||||||
/*** hotplug_acclimated ***/
|
/*** hotplug_acclimated ***/
|
||||||
if (kb_main_total > 9999999) { which = "Mb"; shift = 10; }
|
if (kb_main_total > 9999999) { which = "Mb"; shift = 10; }
|
||||||
if (kb_main_total > 9999999999) { which = "Gb"; shift = 20; }
|
if (kb_main_total > 9999999999ull) { which = "Gb"; shift = 20; }
|
||||||
|
|
||||||
show_special(0, fmtmk(MEMORY_twolines
|
show_special(0, fmtmk(MEMORY_twolines
|
||||||
, which, mkM(total), mkM(used), mkM(free), mkM(buffers)
|
, which, mkM(total), mkM(used), mkM(free), mkM(buffers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user