mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
storage: Fix use of counter (Set -> Add)
This commit is contained in:
parent
1ae50b1d1b
commit
c53f256a09
|
@ -67,7 +67,7 @@ func newFPMapper(fpToSeries *seriesMap, p *persistence) (*fpMapper, error) {
|
|||
return nil, err
|
||||
}
|
||||
m.mappings = mappings
|
||||
m.mappingsCounter.Set(float64(len(m.mappings)))
|
||||
m.mappingsCounter.Add(float64(len(m.mappings)))
|
||||
m.highestMappedFP = nextFP
|
||||
return m, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue