Fix occurreneces of initial uppercase in error strings.

This commit is contained in:
Julius Volz 2015-10-11 17:00:48 +02:00
commit a25751e0b3
8 changed files with 16 additions and 16 deletions

View file

@ -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),