Fix assorted spelling mistakes (#7507)

This commit is contained in:
Josh Soref
2020-05-15 18:43:32 -04:00
committed by GitHub
parent f74824eecb
commit bf1eb291f2
41 changed files with 79 additions and 79 deletions

View File

@@ -105,7 +105,7 @@ var (
"Available Spare": {
Name: "Available_Spare",
Parse: func(fields, deviceFields map[string]interface{}, str string) error {
return parseCommaSeperatedInt(fields, deviceFields, strings.TrimSuffix(str, "%"))
return parseCommaSeparatedInt(fields, deviceFields, strings.TrimSuffix(str, "%"))
},
},
}
@@ -360,7 +360,7 @@ func gatherDisk(acc telegraf.Accumulator, timeout internal.Duration, usesudo, co
tags["id"] = attr.ID
}
parse := parseCommaSeperatedInt
parse := parseCommaSeparatedInt
if attr.Parse != nil {
parse = attr.Parse
}
@@ -421,7 +421,7 @@ func parseInt(str string) int64 {
return 0
}
func parseCommaSeperatedInt(fields, _ map[string]interface{}, str string) error {
func parseCommaSeparatedInt(fields, _ map[string]interface{}, str string) error {
i, err := strconv.ParseInt(strings.Replace(str, ",", "", -1), 10, 64)
if err != nil {
return err

View File

@@ -714,7 +714,7 @@ Transport protocol: SAS (SPL-3)
Local Time is: Wed Apr 17 15:01:28 2019 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temp$rature Warning: Disabled or Not Supported
Temperature Warning: Disabled or Not Supported
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK