mirror of
https://github.com/nushell/nushell.git
synced 2024-12-27 17:39:15 +01:00
Update ps.rs
This commit is contained in:
parent
9c61d6d590
commit
23ef76a86b
@ -28,12 +28,12 @@ impl WholeStreamCommand for PS {
|
||||
fn ps(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, ShellError> {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user