aboutsummaryrefslogtreecommitdiff
path: root/src/utils/netspeed.rs
diff options
context:
space:
mode:
authorMustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com>2021-02-15 04:31:29 +0300
committerGitHub <noreply@github.com>2021-02-15 04:31:29 +0300
commitf16724e986b17dd739b086a917672bb36b1d9b16 (patch)
tree508ce31128c5e2c0ea21a50acdf1901c7e0fd428 /src/utils/netspeed.rs
parentc4cd23f471fe8d6fdac7ddca436b477c16031373 (diff)
Dev (#45)
* added bitcoins prices * removed unwanted formating
Diffstat (limited to 'src/utils/netspeed.rs')
-rw-r--r--src/utils/netspeed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/netspeed.rs b/src/utils/netspeed.rs
index fe172a3..16caaa4 100644
--- a/src/utils/netspeed.rs
+++ b/src/utils/netspeed.rs
@@ -26,7 +26,7 @@ pub fn get_netspeed() -> ThreadsData {
fn parse_speed_file(pth: &str) -> u64 {
let base_path = format!("/sys/class/net/{}/statistics/", CONFIG.netspeed.interface);
- let x: u64 = read_to_string(base_path.to_owned() + pth)
+ let x: u64 = read_to_string(base_path + pth)
.unwrap()
.trim()
.parse::<u64>()