summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-04-05 23:20:22 -0400
committerGitHub <noreply@github.com>2020-04-05 23:20:22 -0400
commita40ddce84fcb5821ff45feba71abbe0b6ce423aa (patch)
treeb0cca0daa6de9d521aeb43ccf406cbd21c754e6d
parent15a3eb4c7e6c92a255f4cb26d5ce1764ebad6eaf (diff)
deps: Upgrade crossterm and sysinfo (#105)
-rw-r--r--Cargo.toml4
-rw-r--r--src/app/data_harvester/network.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f6cb3147..e9d21213 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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"
diff --git a/src/app/data_harvester/network.rs b/src/app/data_harvester/network.rs
index 5e50a110..d99c661e 100644
--- a/src/app/data_harvester/network.rs
+++ b/src/app/data_harvester/network.rs
@@ -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 {