summaryrefslogtreecommitdiffstats
path: root/netbsd
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2021-04-24 09:20:41 +0530
committerBenBE <BenBE@geshi.org>2021-06-26 12:18:37 +0200
commit3414d3b2d443fd5f84a39ee3b5879fed5d3e929a (patch)
tree99229997a08fe87e18620cfec2376fdf0834b15a /netbsd
parent9e3b7c439c14e21c213f9634d957ddcfd1bb278b (diff)
Replace maximum_PID value with INT32_MAX
Thank you @niacat.
Diffstat (limited to 'netbsd')
-rw-r--r--netbsd/Platform.c5
1 files changed, 3 insertions, 2 deletions
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) {

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