Merge master

This commit is contained in:
Jonathan Turner
2019-08-22 05:09:23 +12:00
2 changed files with 24 additions and 20 deletions

View File

@@ -2,8 +2,7 @@ use crate::commands::WholeStreamCommand;
use crate::errors::ShellError;
use crate::object::process::process_dict;
use crate::prelude::*;
#[allow(unused)]
use sysinfo::{RefreshKind, SystemExt};
use sysinfo::SystemExt;
pub struct PS;
@@ -35,6 +34,7 @@ fn ps(args: CommandArgs, _registry: &CommandRegistry) -> Result<OutputStream, Sh
#[cfg(not(target_os = "linux"))]
{
use sysinfo::RefreshKind;
let mut sy = sysinfo::System::new_with_specifics(RefreshKind::new().with_processes());
sy.refresh_processes();