Merge pull request #191 from alicebob/lastgc

fix go_memstats_last_gc_time_seconds division
This commit is contained in:
Brian Brazil 2016-02-08 00:36:15 +00:00
commit 15006a7ed8
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ func NewGoCollector() *goCollector {
"Number of seconds since 1970 of last garbage collection.",
nil, nil,
),
eval: func(ms *runtime.MemStats) float64 { return float64(ms.LastGC*10 ^ 9) },
eval: func(ms *runtime.MemStats) float64 { return float64(ms.LastGC) / 1e9 },
valType: GaugeValue,
},
},