mirror of https://github.com/shirou/gopsutil
The `ProcsTotal` in the `MiscStat` structure was very inaccurate. It was reading a value which is the total number of kernel scheduling entities. This includes both processes and threads significantly overcounting. This instead uses an existing method already in common to count the number of processes via the /proc filesystem where any directory is a number. This should still be a single syscall to read that directory entry. This fixes #1606. |
12 months ago | |
---|---|---|
.. | ||
load.go | ||
load_aix.go | ||
load_aix_cgo.go | ||
load_aix_nocgo.go | 2 years ago | |
load_bsd.go | ||
load_darwin.go | ||
load_fallback.go | ||
load_freebsd.go | ||
load_linux.go | 12 months ago | |
load_openbsd.go | ||
load_solaris.go | ||
load_test.go | ||
load_windows.go | 1 year ago |