summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authormultiplexd <multiplexd@gmx.com>2018-07-17 18:46:55 +0100
committermultiplexd <multiplexd@gmx.com>2018-07-17 18:46:55 +0100
commit3d79c72e9aceb883a6d065bb07ab4f955cd67b4a (patch)
tree5bf3532fc42f07510fa5f0880354eac8d3c88ad3 /openbsd
parent666e1e76b39ee66a38f5fb620d22b23f36859eca (diff)
Update OpenBSD maximum PID
The source code correctly states that the maximum PID number in the OpenBSD kernel is fixed in sys/sys/proc.h, however this was updated in revision 1.215 (two years ago!) from 32766 to 99999.
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 01b6c478..18553c2d 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -197,7 +197,7 @@ 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 32766;
+ return 99999;
}
double Platform_setCPUValues(Meter* this, int cpu) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy