mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
missed staging this earlier :)
This commit is contained in:
@@ -363,11 +363,11 @@ func (sm *SmartManager) parseScan(output []byte) ([]*DeviceInfo, bool) {
|
|||||||
|
|
||||||
if err := json.Unmarshal(output, scan); err != nil {
|
if err := json.Unmarshal(output, scan); err != nil {
|
||||||
slog.Debug("Failed to parse smartctl scan JSON", "err", err)
|
slog.Debug("Failed to parse smartctl scan JSON", "err", err)
|
||||||
return false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(scan.Devices) == 0 {
|
if len(scan.Devices) == 0 {
|
||||||
return false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|
||||||
devices := make([]*DeviceInfo, 0, len(scan.Devices))
|
devices := make([]*DeviceInfo, 0, len(scan.Devices))
|
||||||
|
|||||||
Reference in New Issue
Block a user