diff --git a/Cargo.lock b/Cargo.lock index fc8ea89..25ff4b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.126" +version = "0.1.127" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.126" +version = "0.1.127" dependencies = [ "anyhow", "async-trait", @@ -324,7 +324,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.126" +version = "0.1.127" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 4a49606..d9b9351 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.126" +version = "0.1.127" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 9a42cdb..cb7761e 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.126" +version = "0.1.127" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/widgets/system.rs b/dashboard/src/ui/widgets/system.rs index 4206069..08a37f0 100644 --- a/dashboard/src/ui/widgets/system.rs +++ b/dashboard/src/ui/widgets/system.rs @@ -146,16 +146,14 @@ impl SystemWidget { self.agent_hash.as_ref() } - /// Get mount point for a pool name + /// Get default mount point for a pool name (fallback only - should use actual mount_point metrics) fn get_mount_point_for_pool(&self, pool_name: &str) -> String { - match pool_name { - "root" => "/".to_string(), - "steampool" => "/mnt/steampool".to_string(), - "steampool_1" => "/steampool_1".to_string(), - "steampool_2" => "/steampool_2".to_string(), - // For device names (nvme0n1, sda, etc.), use the device name directly - name if name.starts_with("nvme") || name.starts_with("sd") || name.starts_with("hd") => name.to_string(), - _ => format!("/{}", pool_name), // Default fallback for mount-based pools + // For device names, use the device name directly as display name + if pool_name.starts_with("nvme") || pool_name.starts_with("sd") || pool_name.starts_with("hd") { + pool_name.to_string() + } else { + // For other pools, use the pool name as-is (will be overridden by mount_point metric) + pool_name.to_string() } } diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 22ba150..ee6e059 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.126" +version = "0.1.127" edition = "2021" [dependencies]