diff --git a/Cargo.lock b/Cargo.lock index c2f5ebd..d96563d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.122" +version = "0.1.123" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.122" +version = "0.1.123" dependencies = [ "anyhow", "async-trait", @@ -324,7 +324,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.122" +version = "0.1.123" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 8b9f017..c7b7085 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.122" +version = "0.1.123" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 5a21c90..00249e3 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.122" +version = "0.1.123" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/widgets/system.rs b/dashboard/src/ui/widgets/system.rs index e3858a2..3dd74cb 100644 --- a/dashboard/src/ui/widgets/system.rs +++ b/dashboard/src/ui/widgets/system.rs @@ -512,7 +512,7 @@ impl SystemWidget { lines.push(Line::from(usage_spans)); // Drive lines with enhanced grouping - if pool.pool_type != "single" && pool.drives.len() > 1 { + if pool.pool_type.contains("mergerfs") && pool.drives.len() > 1 { // Group drives by type for mergerfs pools let (data_drives, parity_drives): (Vec<_>, Vec<_>) = pool.drives.iter().enumerate() .partition(|(_, drive)| { @@ -521,7 +521,7 @@ impl SystemWidget { }); // Show data drives - if !data_drives.is_empty() && pool.pool_type.contains("mergerfs") { + if !data_drives.is_empty() { lines.push(Line::from(vec![ Span::raw(" "), Span::styled("├─ ", Typography::tree()), @@ -539,7 +539,7 @@ impl SystemWidget { } // Show parity drives - if !parity_drives.is_empty() && pool.pool_type.contains("mergerfs") { + if !parity_drives.is_empty() { lines.push(Line::from(vec![ Span::raw(" "), Span::styled("└─ ", Typography::tree()), @@ -554,13 +554,13 @@ impl SystemWidget { self.render_drive_line(&mut lines, drive, " ├─"); } } - } else { - // Regular drive listing for non-mergerfs pools - for (i, drive) in pool.drives.iter().enumerate() { - let is_last = i == pool.drives.len() - 1; - let tree_symbol = if is_last { "└─" } else { "├─" }; - self.render_drive_line(&mut lines, drive, tree_symbol); - } + } + } else if pool.pool_type != "single" && pool.drives.len() > 1 { + // Regular drive listing for non-mergerfs multi-drive pools + for (i, drive) in pool.drives.iter().enumerate() { + let is_last = i == pool.drives.len() - 1; + let tree_symbol = if is_last { "└─" } else { "├─" }; + self.render_drive_line(&mut lines, drive, tree_symbol); } } else if pool.pool_type.starts_with("drive (") { // Physical drive pools: show drive info + filesystem children diff --git a/shared/Cargo.toml b/shared/Cargo.toml index d90ab7b..c233860 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.122" +version = "0.1.123" edition = "2021" [dependencies]