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