performance improvements and formatting cleanup

This commit is contained in:
2025-08-11 22:37:46 -07:00
parent c3f81eef25
commit d69a4104fc
10 changed files with 141 additions and 75 deletions
+3 -3
View File
@@ -13,13 +13,13 @@ pub struct Metrics {
pub swap_total_mb: u64,
pub swap_used_mb: u64,
pub net_aggregate: NetTotals,
pub top_processes: Vec<Proc>,
pub top_processes: Vec<Proc>
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct NetTotals {
pub rx_bytes: u64,
pub tx_bytes: u64,
pub tx_bytes: u64
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -28,5 +28,5 @@ pub struct Proc {
pub name: String,
pub cpu: f32,
pub mem_mb: u64,
pub status: String,
pub status: String
}