Skip to content

Commit

Permalink
Fixed another stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Aug 8, 2017
1 parent fbf0c31 commit a38facb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.3.0
22 changes: 7 additions & 15 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion rpi_exporter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"bytes"
"context"
"flag"
"fmt"
Expand Down Expand Up @@ -146,7 +147,7 @@ func (e *Exporter) scrape() (err error) {
if err != nil {
return err
}
temp, err := strconv.ParseFloat(string(b), 64)
temp, err := strconv.ParseFloat(string(bytes.TrimSpace(b)), 64)
if err != nil {
return err
}
Expand Down

0 comments on commit a38facb

Please sign in to comment.