diff --git a/VERSION b/VERSION index 0ea3a94..0d91a54 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +0.3.0 diff --git a/glide.lock b/glide.lock index e31794d..aeb5e50 100644 --- a/glide.lock +++ b/glide.lock @@ -1,18 +1,12 @@ hash: 1d374794705dbffcc034da902556ab5229f498b47cd1ef681105d2443ac4a09b -updated: 2017-08-08T10:43:20.211912001+02:00 +updated: 2017-08-08T22:57:08.722377665+02:00 imports: -- name: github.com/alecthomas/template - version: a0175ee3bccc567396460bf5acd36800cb10c49c - subpackages: - - parse -- name: github.com/alecthomas/units - version: 2efee857e7cfd4f3d0138cc3cbb1b4966962b93a - name: github.com/beorn7/perks version: 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9 subpackages: - quantile - name: github.com/golang/protobuf - version: 1909bc2f63dc92bb931deace8b8312c4db72d12f + version: c9c7427a2a70d2eb3bafa0ab2dc163e45f143317 subpackages: - proto - name: github.com/matttproud/golang_protobuf_extensions @@ -29,7 +23,7 @@ imports: subpackages: - go - name: github.com/prometheus/common - version: 61f87aac8082fa8c3c5655c7608d7478d46ac2ad + version: 49fee292b27bfff7f354ee0f64e1bc4850462edf subpackages: - expfmt - internal/bitbucket.org/ww/goautoneg @@ -37,18 +31,16 @@ imports: - model - version - name: github.com/prometheus/procfs - version: e645f4e5aaa8506fc71d6edbc5c4ff02c04c46f2 + version: a1dba9ce8baed984a2495b658c82687f8157b98f subpackages: - xfs -- name: github.com/sirupsen/logrus - version: a3f95b5c423586578a4e099b11a46c2479628cac +- name: github.com/Sirupsen/logrus + version: 202f25545ea4cf9b191ff7f846df5d87c9382c2b - name: golang.org/x/sys - version: 0e0164865330d5cf1c00247be08330bf96e2f87c + version: afadfcc7779c1f4db0f6f6438afcb108d9c9c7cd subpackages: - unix - windows - windows/registry - windows/svc/eventlog -- name: gopkg.in/alecthomas/kingpin.v2 - version: 1087e65c9441605df944fb12c33f0fe7072d18ca testImports: [] diff --git a/rpi_exporter.go b/rpi_exporter.go index 60814ed..454b2c4 100644 --- a/rpi_exporter.go +++ b/rpi_exporter.go @@ -1,6 +1,7 @@ package main import ( + "bytes" "context" "flag" "fmt" @@ -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 }