mirror of https://github.com/xzeldon/htop.git
Replace maximum_PID value with INT32_MAX
Thank you @niacat.
This commit is contained in:
parent
9e3b7c439c
commit
3414d3b2d4
|
@ -193,8 +193,9 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int Platform_getMaxPid() {
|
int Platform_getMaxPid() {
|
||||||
// this is hard-coded in sys/sys/proc.h - no sysctl exists
|
// https://nxr.netbsd.org/xref/src/sys/sys/ansi.h#__pid_t
|
||||||
return 30000;
|
// pid is assigned as a 32bit Integer.
|
||||||
|
return INT32_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
double Platform_setCPUValues(Meter* this, int cpu) {
|
double Platform_setCPUValues(Meter* this, int cpu) {
|
||||||
|
|
Loading…
Reference in New Issue