We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5c03d commit 5db8dd1Copy full SHA for 5db8dd1
readjson.go
@@ -64,7 +64,7 @@ func readFakeSMARTctl(logger *slog.Logger, device Device) gjson.Result {
64
func readSMARTctl(logger *slog.Logger, device Device, wg *sync.WaitGroup) {
65
defer wg.Done()
66
start := time.Now()
67
- var smartctlArgs = []string{"--json", "--info", "--health", "--attributes", "--tolerance=verypermissive", "--nocheck=" + *smartctlPowerModeCheck, "--format=brief", "--log=error", "--device=" + device.Type, device.Name}
+ var smartctlArgs = []string{"--json", "--info", "--health", "--attributes", "--capabilities", "--tolerance=verypermissive", "--nocheck=" + *smartctlPowerModeCheck, "--format=brief", "--log=error", "--device=" + device.Type, device.Name}
68
69
logger.Debug("Calling smartctl with args", "args", strings.Join(smartctlArgs, " "))
70
out, err := exec.Command(*smartctlPath, smartctlArgs...).Output()
0 commit comments