tmux-mem-cpu-load/openbsd
Pawel "l0ner" Soltys 91594b7a5a Use u_long for storing cpu stats instead of detecting architecture
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.
2015-02-16 18:38:21 +01:00
..
cpu.cc Use u_long for storing cpu stats instead of detecting architecture 2015-02-16 18:38:21 +01:00
cpu.h removed junk, reindentation to adhere to style guidelines 2015-01-20 15:03:49 +01:00
error.h Openbsd: output error message on error 2015-02-01 17:10:52 +01:00
load.cc fix missing headers on OpenBSD 2015-01-21 13:43:42 +01:00
load.h removed junk, reindentation to adhere to style guidelines 2015-01-20 15:03:49 +01:00
memory.cc Openbsd: output error message on error 2015-02-01 17:10:52 +01:00
memory.h removed junk, reindentation to adhere to style guidelines 2015-01-20 15:03:49 +01:00