diff options
author | Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> | 2021-02-15 04:31:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 04:31:29 +0300 |
commit | f16724e986b17dd739b086a917672bb36b1d9b16 (patch) | |
tree | 508ce31128c5e2c0ea21a50acdf1901c7e0fd428 /src/utils/netspeed.rs | |
parent | c4cd23f471fe8d6fdac7ddca436b477c16031373 (diff) |
Dev (#45)
* added bitcoins prices
* removed unwanted formating
Diffstat (limited to 'src/utils/netspeed.rs')
-rw-r--r-- | src/utils/netspeed.rs | 2 |
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>() |