Skip to content

Commit

Permalink
need to add sample rate to stats
Browse files Browse the repository at this point in the history
  • Loading branch information
raskle committed May 30, 2017
1 parent f0c3fdc commit d43d83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fragment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d43d83a

Please sign in to comment.