mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-03 20:53:09 +00:00
85fbbd4ef6
Inserts a per-type threshold lookup before the global AgentDefaults.Disk fallback in CheckHost's disk evaluation. inferDiskHardwareType maps the disk device path to "nvme" (only NVMe is inferable today); when the DiskFillByType map carries a matching key, that hysteresis threshold is used, otherwise evaluation falls through to the existing global default. Storage-type unified_eval branch is unchanged. Tests prove: (a) NVMe device at 91% does not alert when DiskFillByType sets the nvme trigger to 92; (b) the same device at 93% alerts at the nvme threshold; (c) /dev/sda1 falls back to the global threshold; (d) the storage-type alert branch is not regressed.