mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
need to add sample rate to stats
This commit is contained in:
parent
f0c3fdcdda
commit
d43d83ad2f
1 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ func (f *Fragment) Open() error {
|
|||
// Read last bit to determine max row.
|
||||
pos := f.storage.Max()
|
||||
f.maxRowID = pos / SliceWidth
|
||||
f.stats.Gauge("rows", float64(f.maxRowID))
|
||||
f.stats.Gauge("rows", float64(f.maxRowID), 1.0)
|
||||
|
||||
return nil
|
||||
}(); err != nil {
|
||||
|
|
@ -420,7 +420,7 @@ func (f *Fragment) setBit(rowID, columnID uint64) (changed bool, err error) {
|
|||
// Update row count if they have increased.
|
||||
if rowID > f.maxRowID {
|
||||
f.maxRowID = rowID
|
||||
f.stats.Gauge("rows", float64(f.maxRowID))
|
||||
f.stats.Gauge("rows", float64(f.maxRowID), 1.0)
|
||||
}
|
||||
|
||||
return changed, nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue