summaryrefslogtreecommitdiffstats
path: root/openbsd/OpenBSDMachine.c
Commit message (Collapse)AuthorAgeFilesLines
* Attempt to "Fix" OpenBSD BuildSamuel Venable2024-01-091-2/+2
| | | | Co-authored-by: Benny Baumann <BenBE@geshi.org>
* Add includes for config.h as per the discussion in PR #1337Daniel Lange2023-12-261-0/+2
| | | | | | Many thanks to @Explorer09 Kang-Che Sung (宋岡哲). Also add a #error stanza to XUtils.h in case somebody forgets the beautiful mess GNU forces on us.
* Rename ProcessList to ProcessTable throughoutNathan Scott2023-08-311-1/+1
| | | | | | | | | | | | Following up with some discusson from a few months back, where it was proposed that ProcessTable is a better name. This data structure is definitely not a list ... if it was one-dimensional it'd be a set, but in practice it has much more in common with a two-dimensional table. The Process table is a familiar operating system concept for many people too so it resonates a little in that way as well.
* BSD platforms: Reject negative and zero KERN_FSCALE factorsExplorer092023-08-301-1/+1
| | | | | | | | | | | | | | The "fscale" value, retrieved by sysctl() in BSD platforms, is used for computing CPU percentages of the processes. To prevent a division by zero, we should reject a zero "fscale" value. (A negative "fscale" value will not make sense either.) For DragonFlyBSD and FreeBSD, this would fall back to the hard-coded default scale. For NetBSD and OpenBSD, there is no hard-coded default value, so the zero or negative "fscale" is now a fatal error. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Fix some OpenBSD build fallout from struct Machine changesetNathan Scott2023-08-301-2/+2
| | | | Cherry-picked build-relevant part of #1277
* Avoid VLA on OpenBSD when reading swap informationBenny Baumann2023-07-281-1/+3
|
* Adapt platform code for the new Machine base classNathan Scott2023-05-081-0/+286
Move host-centric data to new derived <Platform>Machine classes, separate from process-list-centric data.

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