mirror of
https://github.com/prometheus-community/ipmi_exporter
synced 2024-12-17 19:54:39 +00:00
Fix spelling
This commit is contained in:
parent
41c81a95a1
commit
6a0e85dd89
@ -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] {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user