mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-13 06:56:06 +00:00
Seagate drives pack vendor-specific data in the upper bytes of the 48-bit SMART raw value, causing Power_On_Hours to report billions of years instead of the actual value. Use smartctl's raw.string field (e.g. "16951 (223 173 0)") and extract the first integer, which is the correct interpretation. Falls back to raw.value when the string is empty or non-numeric. |
||
|---|---|---|
| .. | ||
| collector.go | ||
| collector_coverage_test.go | ||
| collector_test.go | ||