top: exploit new kb_main_available, make Jaromir happy
This patch will trade a former pessimistic calculation of free physical memory for a more optimistic one that uses the newly added kb_main_available library export. But in case one might wish to return to the old former method, there's a new #define that was made available. [ the new calculation will affect graphing mode only ] Reference(s): http://www.freelists.org/post/procps/systemd-support-to-library,9 Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
committed by
Jaromir Capik
parent
9500dc198c
commit
d310a18fc2
@@ -637,8 +637,8 @@ static void build_uniq_nlstab (void) {
|
||||
"%#5.1f ~2us,~3%#5.1f ~2sy,~3%#5.1f ~2ni,~3%#5.1f ~2id,~3%#5.1f ~2wa,~3%#5.1f ~2hi,~3%#5.1f ~2si,~3%#5.1f ~2st~3\n");
|
||||
|
||||
Uniq_nlstab[MEMORY_lines_fmt] = _(""
|
||||
"%s %s:~3 %9.9s~2total,~3 %9.9s~2free,~3 %9.9s~2used,~3 %9.9s~2buffers~3\n"
|
||||
"%s %s:~3 %9.9s~2total,~3 %9.9s~2free,~3 %9.9s~2used.~3 %9.9s~2cached %s~3\n");
|
||||
"%s %s:~3 %9.9s~2total,~3 %9.9s~2free,~3 %9.9s~2used,~3 %9.9s~2buff/cache~3\n"
|
||||
"%s %s:~3 %9.9s~2total,~3 %9.9s~2free,~3 %9.9s~2used.~3 %9.9s~2avail %s~3\n");
|
||||
|
||||
Uniq_nlstab[INSP_hdrsels_fmt] = _(""
|
||||
"Inspection~2 Pause at: pid ~1%d~6 running ~1%s~6 as user ~1%s~6\n"
|
||||
|
Reference in New Issue
Block a user