mirror of https://github.com/shirou/gopsutil
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 | 3 years ago | |
load_aix.go | 3 years ago | |
load_aix_cgo.go | 3 years ago | |
load_aix_nocgo.go | 2 years ago | |
load_bsd.go | 3 years ago | |
load_darwin.go | 3 years ago | |
load_fallback.go | 3 years ago | |
load_freebsd.go | 3 years ago | |
load_linux.go | 12 months ago | |
load_openbsd.go | 3 years ago | |
load_solaris.go | 3 years ago | |
load_test.go | 3 years ago | |
load_windows.go | 1 year ago |