From 23ef76a86ba64436a8517a43a087bb6768a29541 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 21 Aug 2019 20:19:36 +1200 Subject: [PATCH] Update ps.rs --- src/commands/ps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/ps.rs b/src/commands/ps.rs index 970a67844..4913cb0a3 100644 --- a/src/commands/ps.rs +++ b/src/commands/ps.rs @@ -28,12 +28,12 @@ impl WholeStreamCommand for PS { fn ps(args: CommandArgs, _registry: &CommandRegistry) -> Result { let system; - #[cfg(linux)] + #[cfg(target_os = "linux")] { system = sysinfo::System::new(); } - #[cfg(not(linux))] + #[cfg(not(target_os = "linux"))] { let mut sy = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes()); sy.refresh_processes();