91594b7a5a
As suggested to me by "Jasper Lievisse Adriaanse" in an email: On 2015-02-16 09:02 Jasper Lievisse Adriaanse <jasper@openbsd.org> wrote: > You can actually use 'long' instead of juggling between 64 and 32 bit return > types. I've impemented something similiar for libgtop years ago and never had > any issues when using 'long' for both 64 and 32 platforms. Here's the > refernce: https://git.gnome.org/browse/libgtop/tree/sysdeps/openbsd/cpu.c#n62 This is a better idea than what I've implemented. Also this should resolve eventual occurrence of "unable to get cpu stats" problem on 64bit platforms we do not detect. |
||
---|---|---|
.. | ||
cpu.cc | ||
cpu.h | ||
error.h | ||
load.cc | ||
load.h | ||
memory.cc | ||
memory.h |