Replace maximum_PID value with INT32_MAX

Thank you @niacat.
This commit is contained in:
fraggerfox 2021-04-24 09:20:41 +05:30 committed by BenBE
parent 9e3b7c439c
commit 3414d3b2d4
1 changed files with 3 additions and 2 deletions

View File

@ -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) {