tmux-mem-cpu-load/freebsd
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 FreeBSD and OpenBSD ports 2015-01-20 15:03:48 +01:00
getsysctl.h FreeBSD and OpenBSD ports 2015-01-20 15:03:48 +01:00
load.cc FreeBSD and OpenBSD ports 2015-01-20 15:03:48 +01:00
load.h FreeBSD and OpenBSD ports 2015-01-20 15:03:48 +01:00
memory.cc Fixed RAM usage calculation on FreeBSD 2015-02-13 18:46:28 +01:00
memory.h FreeBSD and OpenBSD ports 2015-01-20 15:03:48 +01:00