The recent changes to how getKstatInt behaves are much more intuitive. I
wrote it primarily just to have it there to use in the future. The one
place where I did call it correctly in hindsight looks kind of
bass-ackwards:
if (!getKstatInt("unix", "system_misc", "nproc", &nproc))
...or in other words "if not kstat didn't work" with is a double-negative.
(also, since the last getKstatInt fix, this particular code is now broken
and segfaults).
I propose to change it to: (OK, I'm lying. I already changed it and I'm
trying to avoid getting it yanked)
if (getKstatInt("unix", "system_misc", "nproc", &nproc))
...which I've tested and works just fine for me.
Could I have some votes please?
--
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders