Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

Widen NVMe power-cycle SMART fields to uint (#2484)

Bartu Özendd3a769d189e
diff --git a/internal/entities/smart/smart.go b/internal/entities/smart/smart.go
index ef452a586..694522e59 100644
--- a/internal/entities/smart/smart.go
+++ b/internal/entities/smart/smart.go
@@ -475,7 +475,7 @@ type NVMeSmartHealthInformationLog struct {
HostReads uint `json:"host_reads"`
HostWrites uint `json:"host_writes"`
ControllerBusyTime uint `json:"controller_busy_time"`
- PowerCycles uint16 `json:"power_cycles"`
+ PowerCycles uint `json:"power_cycles"`
PowerOnHours uint32 `json:"power_on_hours"`
UnsafeShutdowns uint16 `json:"unsafe_shutdowns"`
MediaErrors uint `json:"media_errors"`
@@ -506,7 +506,7 @@ type SmartInfoForNvme struct {
SmartStatus SmartStatusInfoNvme `json:"smart_status"`
NVMeSmartHealthInformationLog *NVMeSmartHealthInformationLog `json:"nvme_smart_health_information_log"`
Temperature TemperatureInfoNvme `json:"temperature"`
- PowerCycleCount uint16 `json:"power_cycle_count"`
+ PowerCycleCount uint `json:"power_cycle_count"`
PowerOnTime PowerOnTimeInfoNvme `json:"power_on_time"`
}