clippy clean up
This commit is contained in:
parent
4b52382326
commit
b35e431200
@ -71,7 +71,7 @@ pub async fn collect_metrics(state: &AppState) -> Metrics {
|
|||||||
.map(|(name, data)| NetworkInfo {
|
.map(|(name, data)| NetworkInfo {
|
||||||
name: name.to_string(),
|
name: name.to_string(),
|
||||||
received: data.total_received(),
|
received: data.total_received(),
|
||||||
transmitted: data.total_transmitted()
|
transmitted: data.total_transmitted(),
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
};
|
};
|
||||||
@ -86,7 +86,7 @@ pub async fn collect_metrics(state: &AppState) -> Metrics {
|
|||||||
pid: p.pid().as_u32(),
|
pid: p.pid().as_u32(),
|
||||||
name: p.name().to_string_lossy().into_owned(),
|
name: p.name().to_string_lossy().into_owned(),
|
||||||
cpu_usage: p.cpu_usage(),
|
cpu_usage: p.cpu_usage(),
|
||||||
mem_bytes: p.memory()
|
mem_bytes: p.memory(),
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
};
|
};
|
||||||
@ -133,6 +133,6 @@ pub async fn collect_metrics(state: &AppState) -> Metrics {
|
|||||||
disks,
|
disks,
|
||||||
networks,
|
networks,
|
||||||
top_processes: procs,
|
top_processes: procs,
|
||||||
gpus
|
gpus,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user