Fix occurreneces of initial uppercase in error strings.
This commit is contained in:
parent
e70cbd2045
commit
a25751e0b3
8 changed files with 16 additions and 16 deletions
|
|
@ -53,13 +53,13 @@ func NewInterruptsCollector() (Collector, error) {
|
|||
func (c *interruptsCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
||||
interrupts, err := getInterrupts()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Couldn't get interrupts: %s", err)
|
||||
return fmt.Errorf("couldn't get interrupts: %s", err)
|
||||
}
|
||||
for name, interrupt := range interrupts {
|
||||
for cpuNo, value := range interrupt.values {
|
||||
fv, err := strconv.ParseFloat(value, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Invalid value %s in interrupts: %s", value, err)
|
||||
return fmt.Errorf("invalid value %s in interrupts: %s", value, err)
|
||||
}
|
||||
labels := prometheus.Labels{
|
||||
"CPU": strconv.Itoa(cpuNo),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue