mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-22 13:14:40 +02:00
deps: Upgrade crossterm and sysinfo (#105)
This commit is contained in:
parent
15a3eb4c7e
commit
a40ddce84f
@ -23,7 +23,7 @@ lto = "fat"
|
|||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crossterm = "0.16"
|
crossterm = "0.17"
|
||||||
chrono = "0.4.11"
|
chrono = "0.4.11"
|
||||||
clap = "2.33.0"
|
clap = "2.33.0"
|
||||||
dirs = "2.0.2"
|
dirs = "2.0.2"
|
||||||
@ -32,7 +32,7 @@ futures = "0.3.4"
|
|||||||
heim = "0.0.10"
|
heim = "0.0.10"
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
regex = "1.3"
|
regex = "1.3"
|
||||||
sysinfo = "0.11"
|
sysinfo = "0.12"
|
||||||
toml = "0.5.6"
|
toml = "0.5.6"
|
||||||
tui = {version = "0.8", features = ["crossterm"], default-features = false }
|
tui = {version = "0.8", features = ["crossterm"], default-features = false }
|
||||||
typed-builder = "0.5.1"
|
typed-builder = "0.5.1"
|
||||||
|
@ -35,8 +35,8 @@ pub async fn get_network_data(
|
|||||||
if cfg!(target_os = "windows") {
|
if cfg!(target_os = "windows") {
|
||||||
let networks = sys.get_networks();
|
let networks = sys.get_networks();
|
||||||
for (_, network) in networks {
|
for (_, network) in networks {
|
||||||
total_rx += network.get_total_income();
|
total_rx += network.get_total_received();
|
||||||
total_tx += network.get_total_outcome();
|
total_tx += network.get_total_transmitted();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while let Some(io) = io_data.next().await {
|
while let Some(io) = io_data.next().await {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user