diff options
author | Frederick Zhang <frederick888@tsundere.moe> | 2021-01-22 12:53:55 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 20:53:55 -0500 |
commit | b8d3b68e75207a584c421f961d6bb21ce92a0a88 (patch) | |
tree | d95c6113cae19b8315f563180cf1db779c2f6549 /.all-contributorsrc | |
parent | 3dd748c2f487113cf38db32401d376a5047b29ac (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