Skip to content

Commit 5db8dd1

Browse files
committed
add --capabilities smartctl arg to gather temperature thresholds
1 parent ef5c03d commit 5db8dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readjson.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func readFakeSMARTctl(logger *slog.Logger, device Device) gjson.Result {
6464
func readSMARTctl(logger *slog.Logger, device Device, wg *sync.WaitGroup) {
6565
defer wg.Done()
6666
start := time.Now()
67-
var smartctlArgs = []string{"--json", "--info", "--health", "--attributes", "--tolerance=verypermissive", "--nocheck=" + *smartctlPowerModeCheck, "--format=brief", "--log=error", "--device=" + device.Type, device.Name}
67+
var smartctlArgs = []string{"--json", "--info", "--health", "--attributes", "--capabilities", "--tolerance=verypermissive", "--nocheck=" + *smartctlPowerModeCheck, "--format=brief", "--log=error", "--device=" + device.Type, device.Name}
6868

6969
logger.Debug("Calling smartctl with args", "args", strings.Join(smartctlArgs, " "))
7070
out, err := exec.Command(*smartctlPath, smartctlArgs...).Output()

0 commit comments

Comments
 (0)