diff --git a/Cargo.lock b/Cargo.lock index d621a0a..55c91fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.115" +version = "0.1.116" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.115" +version = "0.1.116" dependencies = [ "anyhow", "async-trait", @@ -324,7 +324,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.115" +version = "0.1.116" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 196e6b0..c20ccd0 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.115" +version = "0.1.116" edition = "2021" [dependencies] diff --git a/agent/src/collectors/disk.rs b/agent/src/collectors/disk.rs index eaed276..6bd7133 100644 --- a/agent/src/collectors/disk.rs +++ b/agent/src/collectors/disk.rs @@ -119,10 +119,7 @@ impl DiskCollector { let parts: Vec<&str> = line.split_whitespace().collect(); if parts.len() >= 2 { let device_name = parts[0] - .trim_start_matches('├') - .trim_start_matches('└') - .trim_start_matches('─') - .trim(); + .trim_start_matches(&['├', '└', '─', ' '][..]); let mount_point = parts[1]; // Skip unwanted mount points @@ -665,11 +662,6 @@ impl DiskCollector { }); // Individual filesystem metrics - debug!("Drive {} has {} filesystems", drive_name, drive.filesystems.len()); - for filesystem in &drive.filesystems { - debug!("Filesystem {}: {} bytes used / {} bytes total", - filesystem.mount_point, filesystem.used_bytes, filesystem.total_bytes); - } for filesystem in &drive.filesystems { let fs_name = if filesystem.mount_point == "/" { "root".to_string() diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 8938d84..0b67635 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.115" +version = "0.1.116" edition = "2021" [dependencies] diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 81e3f5a..829a56d 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.115" +version = "0.1.116" edition = "2021" [dependencies]