Skip to content

Commit

Permalink
fixed sysinfo issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZySacX committed Jul 22, 2022
1 parent a33a20a commit fccf018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/feature/si.rs
Expand Up @@ -262,7 +262,9 @@ pub(crate) fn configure_sysinfo(_instructions: &Instructions, _config: &mut Conf

#[cfg(all(feature = "si", not(target_os = "windows"), not(target_os = "macos")))]
fn check_user(process: &Process, user: &User) -> bool {
*user.uid() == process.uid
use sysinfo::ProcessExt;

Some(user.id()) == process.user_id()
}

#[cfg(all(feature = "si", target_os = "windows"))]
Expand Down

0 comments on commit fccf018

Please sign in to comment.