mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
ecfd6f685e
Use the appropriate types when calling sysctl(). Currently, `unsigned long long int` is used for all sizes and on FreeBSD/powerpc this causes all sysctl() calls in scanMemoryInfo() to fail as they are actually of different sizes on powerpc, where (sizeof(unsigned long long int), sizeof(u_long)) == (8, 4) vs (8, 8) on amd64. This results in bogus memory sizes being reported by htop. Signed-off-by: Tobias Kortkamp <tobik@FreeBSD.org> |
||
---|---|---|
.. | ||
Battery.c | ||
Battery.h | ||
FreeBSDCRT.c | ||
FreeBSDCRT.h | ||
FreeBSDProcess.c | ||
FreeBSDProcess.h | ||
FreeBSDProcessList.c | ||
FreeBSDProcessList.h | ||
Platform.c | ||
Platform.h |