mirror of
https://github.com/nushell/nushell
synced 2024-12-27 13:33:16 +00:00
Oops, one more time
This commit is contained in:
parent
c54528651d
commit
c98bf68341
1 changed files with 2 additions and 2 deletions
|
@ -28,12 +28,12 @@ impl WholeStreamCommand for PS {
|
|||
fn ps(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, ShellError> {
|
||||
let system;
|
||||
|
||||
#[cfg(not(windows))]
|
||||
#[cfg(linux)]
|
||||
{
|
||||
system = sysinfo::System::new();
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[cfg(not(linux))]
|
||||
{
|
||||
let mut sy = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes());
|
||||
sy.refresh_processes();
|
||||
|
|
Loading…
Reference in a new issue