Skip to content

Commit cf5d9b0

Browse files
committed
Fix over-counting of cache writes
Signed-off-by: Bryan Boreham <[email protected]>
1 parent d5fada7 commit cf5d9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chunk/cache/background.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (c *backgroundCache) Store(ctx context.Context, keys []string, bufs [][]byt
9696
}
9797
select {
9898
case c.bgWrites <- bgWrite:
99-
c.queueLength.Add(float64(len(keys)))
99+
c.queueLength.Add(float64(num))
100100
default:
101101
c.droppedWriteBack.Add(float64(len(keys)))
102102
sp := opentracing.SpanFromContext(ctx)

0 commit comments

Comments
 (0)