diff --git a/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Collectors/DeviceInfoCollector.HardwareSpec.cs b/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Collectors/DeviceInfoCollector.HardwareSpec.cs index fe9c1df8..94d8bb69 100644 --- a/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Collectors/DeviceInfoCollector.HardwareSpec.cs +++ b/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Collectors/DeviceInfoCollector.HardwareSpec.cs @@ -356,7 +356,9 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Collectors if (data.ContainsKey("disks") && data["disks"] is List> disks && disks.Count > 0) { - var d = disks[0]; + // Prefer non-USB disk for the summary message (USB drives are often boot media, not the actual system disk) + var d = disks.FirstOrDefault(dk => dk.ContainsKey("busType") && !string.Equals(dk["busType"]?.ToString(), "USB", StringComparison.OrdinalIgnoreCase)) + ?? disks[0]; var diskDesc = d.ContainsKey("sizeGB") ? $"{d["sizeGB"]} GB" : ""; if (d.ContainsKey("mediaType")) diskDesc += $" {d["mediaType"]}"; diff --git a/src/Agent/AutopilotMonitor.Agent/buildcounter.txt b/src/Agent/AutopilotMonitor.Agent/buildcounter.txt index 08f851b6..5a232f26 100644 --- a/src/Agent/AutopilotMonitor.Agent/buildcounter.txt +++ b/src/Agent/AutopilotMonitor.Agent/buildcounter.txt @@ -1 +1 @@ -519 +521