Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func readData(device string) (gjson.Result, error) {
}
return gjson.Parse("{}"), fmt.Errorf("smartctl returned bad data for device %s", device)
}
return gjson.Parse("{}"), fmt.Errorf("Too early collect called for device %s", device)
return cacheValue.JSON, nil
}
return gjson.Parse("{}"), fmt.Errorf("Device %s unavialable", device)
}
Expand Down
Empty file modified smartctl_exporter.yaml
100755 → 100644
Empty file.