diff --git a/Cargo.lock b/Cargo.lock index 7dfe4e8..9d58757 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.222" +version = "0.1.223" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.222" +version = "0.1.223" dependencies = [ "anyhow", "async-trait", @@ -325,7 +325,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.222" +version = "0.1.223" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index dbf84f8..80f2ac0 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.223" +version = "0.1.224" edition = "2021" [dependencies] diff --git a/agent/src/collectors/disk.rs b/agent/src/collectors/disk.rs index bbd917f..57049e3 100644 --- a/agent/src/collectors/disk.rs +++ b/agent/src/collectors/disk.rs @@ -801,20 +801,13 @@ impl DiskCollector { // Extract base device name (e.g., "sda1" -> "sda") let base_device = self.extract_base_device(&format!("/dev/{}", device)); - - // Get temperature from SMART data if available - let temperature = if let Ok(smart_data) = tokio::task::block_in_place(|| { - tokio::runtime::Handle::current().block_on(self.get_smart_data(&base_device)) - }) { - smart_data.temperature_celsius - } else { - None - }; - + + // Temperature will be filled in later from parallel SMART collection + // Don't collect it here to avoid sequential blocking with problematic async nesting Ok(PoolDrive { name: base_device, mount_point: path.to_string(), - temperature_celsius: temperature, + temperature_celsius: None, }) } diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 9f924aa..6812624 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.223" +version = "0.1.224" edition = "2021" [dependencies] diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 18338d6..2d6c41b 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.223" +version = "0.1.224" edition = "2021" [dependencies]