modulized everthing

This commit is contained in:
2025-08-08 18:59:57 +02:00
parent f0b89a9c32
commit abfa0b6fc0
11 changed files with 690 additions and 570 deletions

View File

@@ -47,9 +47,9 @@ pub struct MetricDto {
#[serde(rename = "disk_Temp")]
pub disk_temp: f64,
#[serde(rename = "net_In")]
pub net_in: f64,
pub net_rx: f64,
#[serde(rename = "net_Out")]
pub net_out: f64,
pub net_tx: f64,
}
#[derive(Deserialize)]
@@ -73,9 +73,3 @@ pub struct HardwareDto {
pub ram_size: f64,
pub ip_address: String,
}
pub struct NetworkState {
pub prev_rx: u64,
pub prev_tx: u64,
pub last_update: Instant,
}