summaryrefslogtreecommitdiffstats
path: root/.all-contributorsrc
diff options
context:
space:
mode:
authorFrederick Zhang <frederick888@tsundere.moe>2021-01-22 12:53:55 +1100
committerGitHub <noreply@github.com>2021-01-21 20:53:55 -0500
commitb8d3b68e75207a584c421f961d6bb21ce92a0a88 (patch)
treed95c6113cae19b8315f563180cf1db779c2f6549 /.all-contributorsrc
parent3dd748c2f487113cf38db32401d376a5047b29ac (diff)
feature: Use `ps` as fallback to query CPU usage under macOS (#390)
When running without elevated permissions under macOS, sysinfo cannot query states of processes by root user, which results in 0.0% CPU usage for all this kind of processes (and state = Unknown). Here we use `ps`, which has SUID, as a fallback to query CPU usages. This can be potentially applied to other properties if needed in the future (we'll need a proper struct and parser).
Diffstat (limited to '.all-contributorsrc')
0 files changed, 0 insertions, 0 deletions