record system processes with stats

This commit is contained in:
mbecker20
2023-01-04 08:25:17 +00:00
parent 3dfeb65aab
commit 53cf644008
2 changed files with 3 additions and 8 deletions

View File

@@ -83,14 +83,7 @@ impl State {
let futures = servers.into_iter().map(|server| async move {
let stats = self
.periphery
.get_system_stats(
&server,
&SystemStatsQuery {
networks: true,
components: true,
processes: false,
},
)
.get_system_stats(&server, &SystemStatsQuery::all())
.await;
(server, stats)
});

View File

@@ -234,6 +234,7 @@ pub struct SystemStatsRecord {
pub disk: DiskUsage,
pub networks: Vec<SystemNetwork>,
pub components: Vec<SystemComponent>,
pub processes: Vec<SystemProcess>,
pub polling_rate: Timelength,
}
@@ -248,6 +249,7 @@ impl SystemStatsRecord {
disk: stats.disk,
networks: stats.networks,
components: stats.components,
processes: stats.processes,
polling_rate: stats.polling_rate,
}
}