diff --git a/ChangeLog b/ChangeLog index 8815a9a9..5a1201d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1998-07-17 Martin Baulig + * lib/lib.awk (glibtop_get_*): Now correctly using + `(1 << GLIBTOP_SYSDEPS_*)' instead of `GLIBTOP_SYSDEPS_*'. + * sysdeps/sun4/proclist.c (glibtop_get_proclist_p): Added implementation of that feature. diff --git a/lib/lib.awk b/lib/lib.awk index 7498b841..3ea6569e 100644 --- a/lib/lib.awk +++ b/lib/lib.awk @@ -31,7 +31,7 @@ function output(feature) { print "\tglibtop_init_r (&server, GLIBTOP_SYSDEPS_"toupper(feature)", 0);"; print ""; print "\tif ((server->flags & _GLIBTOP_INIT_STATE_SERVER) &&"; - print "\t (server->features & GLIBTOP_SYSDEPS_"toupper(feature)"))"; + print "\t (server->features & (1 << GLIBTOP_SYSDEPS_"toupper(feature)")))"; print "\t{"; if (feature ~ /^proc_/) {