Repair spelling

Signed-off-by: Nathan Carlson <carl4403@umn.edu>
This commit is contained in:
Nathan Carlson 2024-08-09 16:06:55 -05:00
parent eef6f880a8
commit c98c4a34a5
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ for device in "${devices[@]}"
echo -n "Collecting data for '${device}'..."
# shellcheck disable=SC2086
data="$($SUDO smartctl ${smartctl_args} ${device})"
# Accomodate a smartmontools pre-7.3 bug
# Accommodate a smartmontools pre-7.3 bug
data=${data#" Pending defect count:"}
type="$(echo "${data}" | "${json_tool}" "${json_args}" '.device.type')"
family="$(echo "${data}" | "${json_tool}" "${json_args}" \

View File

@ -68,7 +68,7 @@ func readSMARTctl(logger log.Logger, device Device) (gjson.Result, bool) {
if err != nil {
level.Warn(logger).Log("msg", "S.M.A.R.T. output reading", "err", err, "device", device.Info_Name)
}
// Accomodate a smartmontools pre-7.3 bug
// Accommodate a smartmontools pre-7.3 bug
cleaned_out := strings.TrimPrefix(string(out), " Pending defect count:")
json := parseJSON(cleaned_out)
rcOk := resultCodeIsOk(logger, device, json.Get("smartctl.exit_status").Int())