mirror of
https://github.com/nushell/nushell.git
synced 2025-04-09 21:28:55 +02:00
Do less work in sys (#3413)
This commit is contained in:
parent
efac712f62
commit
6769d46dbb
@ -197,7 +197,7 @@ pub fn temp(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn sysinfo(tag: Tag) -> Vec<Value> {
|
pub async fn sysinfo(tag: Tag) -> Vec<Value> {
|
||||||
let mut sys = System::new_all();
|
let mut sys = System::new();
|
||||||
|
|
||||||
let mut sysinfo = TaggedDictBuilder::with_capacity(&tag, 6);
|
let mut sysinfo = TaggedDictBuilder::with_capacity(&tag, 6);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user