mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 07:30:13 +01:00
f93033c20b
Closes #8264. This PR does a few things to fix the `usage` column in `sys.cpu`: 1. Sleep a while (~400ms) between calls to `sys.refresh_cpu()`, [as required by `sysinfo`](https://docs.rs/sysinfo/latest/sysinfo/trait.SystemExt.html#method.refresh_cpu) 2. Change `sys` to return a `LazyRecord` (so you can do things like `sys | get host` instantly without waiting for CPU info) 3. Update our `sysinfo` dependency to [fix CPU usage calculations on Linux](https://github.com/GuillaumeGomez/sysinfo/pull/946) CPU usage is no longer always reported as zero: ![image](https://user-images.githubusercontent.com/26268125/222929775-5e9cbe18-95d9-4ecb-baf8-1e843f5c7086.png)
25 lines
712 B
TOML
25 lines
712 B
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "Nushell's evaluation engine"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-engine"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu-engine"
|
|
version = "0.76.1"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
nu-protocol = { path = "../nu-protocol", features = ["plugin"], version = "0.76.1" }
|
|
nu-path = { path = "../nu-path", version = "0.76.1" }
|
|
nu-glob = { path = "../nu-glob", version = "0.76.1" }
|
|
nu-utils = { path = "../nu-utils", version = "0.76.1" }
|
|
|
|
chrono = { version="0.4.23", features = ["std"], default-features = false }
|
|
serde = {version = "1.0.143", default-features = false }
|
|
sysinfo ="0.28.2"
|
|
|
|
[features]
|
|
plugin = []
|