From 3414d3b2d443fd5f84a39ee3b5879fed5d3e929a Mon Sep 17 00:00:00 2001 From: fraggerfox Date: Sat, 24 Apr 2021 09:20:41 +0530 Subject: Replace maximum_PID value with INT32_MAX Thank you @niacat. --- netbsd/Platform.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'netbsd') diff --git a/netbsd/Platform.c b/netbsd/Platform.c index 5d18e8b2..7c7ec03f 100644 --- a/netbsd/Platform.c +++ b/netbsd/Platform.c @@ -193,8 +193,9 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) { } int Platform_getMaxPid() { - // this is hard-coded in sys/sys/proc.h - no sysctl exists - return 30000; + // https://nxr.netbsd.org/xref/src/sys/sys/ansi.h#__pid_t + // pid is assigned as a 32bit Integer. + return INT32_MAX; } double Platform_setCPUValues(Meter* this, int cpu) { -- cgit v1.2.3