top: exploit those new library task/threads provisions
This patch adapts top to exploit the new <proc/pids.h> interface. And it appears to have reduced top's weight by a considerable margin. Gone were the sort callbacks and manipulation of those library flags. Gosh, all top needs to do now is track some enumerators of interest. [ whoa, wait just a damn minute. it now appears some ] [ that weight loss was solely the result of a theft. ] [ jeeze, we turn our back for just a minute & newlib ] [ up & steals our pids hashing logic for his history ] [ needs. oh well, i guess life's just not that fair. ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -470,8 +470,9 @@ static void build_norm_nlstab (void) {
|
||||
. padding with extra spaces as necessary */
|
||||
Norm_nlstab[WORD_abv_mem_txt] = _("Mem ");
|
||||
Norm_nlstab[WORD_abv_swp_txt] = _("Swap");
|
||||
Norm_nlstab[LIB_errormem_txt] = _("library failed memory statistics");
|
||||
Norm_nlstab[LIB_errorcpu_txt] = _("library failed cpu statistics");
|
||||
Norm_nlstab[LIB_errormem_fmt] = _("library failed memory statistics, at %d");
|
||||
Norm_nlstab[LIB_errorcpu_fmt] = _("library failed cpu statistics, at %d");
|
||||
Norm_nlstab[LIB_errorpid_fmt] = _("library failed pids statistics, at %d");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user