forked from github-starred/komodo
record system processes with stats
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user