Consolidate version location

This commit is contained in:
sm
2018-03-08 14:48:25 -08:00
parent eee330aea5
commit a4987f4f42
4 changed files with 7 additions and 9 deletions
+1 -3
View File
@@ -15,8 +15,6 @@ import (
"mcquay.me/metrics"
)
const version = "v0.1.1"
var success *prometheus.CounterVec
type v struct {
@@ -90,7 +88,7 @@ func main() {
fetcher := state{
Hostname: hn,
V: version,
V: hw.Version,
Counts: map[string]int{},
}
go fetcher.update(target)