aboutsummaryrefslogtreecommitdiff
path: root/src/utils/netspeed.rs
diff options
context:
space:
mode:
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>()