Fix spelling

This commit is contained in:
Conrad Hoffmann 2022-10-31 09:53:34 +01:00
parent 41c81a95a1
commit 6a0e85dd89
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ func (c SMLANModeCollector) Collect(result freeipmi.Result, ch chan<- prometheus
}
if len(octets) != 3 {
level.Error(logger).Log("msg", "Unexpected number of octets", "target", targetName(target.host), "octets", octets)
return 0, fmt.Errorf("unexpected number of octects in raw response: %d", len(octets))
return 0, fmt.Errorf("unexpected number of octets in raw response: %d", len(octets))
}
switch octets[2] {

View File

@ -284,6 +284,6 @@ func GetRawOctets(ipmiOutput Result) ([]string, error) {
if !strings.HasPrefix(strOutput, "rcvd: ") {
return nil, fmt.Errorf("unexpected raw response: %s", strOutput)
}
octects := strings.Split(strOutput[6:], " ")
return octects, nil
octets := strings.Split(strOutput[6:], " ")
return octets, nil
}