fix go_memstats_last_gc_time_seconds division

This commit is contained in:
Harmen 2016-02-08 01:23:24 +01:00
parent 67994f1771
commit e48dd8ee97
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,
},
},