From 8a02dba76dabd6b45dfc0871d12c00c7bba8098c Mon Sep 17 00:00:00 2001 From: Caleb Lloyd Date: Mon, 11 Dec 2023 10:50:49 -0500 Subject: [PATCH] flatten tiered limits Signed-off-by: Caleb Lloyd --- surveyor/collector_statz.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surveyor/collector_statz.go b/surveyor/collector_statz.go index e3fe705..1a9918d 100644 --- a/surveyor/collector_statz.go +++ b/surveyor/collector_statz.go @@ -588,10 +588,10 @@ func (sc *StatzCollector) pollAccountInfo() error { }) // computed tiered storage usage - used := float64(stream.State.Bytes * uint64(stream.Config.Replicas)) + used := float64(stream.State.Bytes) var reserved float64 if stream.Config.MaxBytes > 0 { - reserved = float64(stream.Config.MaxBytes * int64(stream.Config.Replicas)) + reserved = float64(stream.Config.MaxBytes) } if stream.Config.Storage == server.MemoryStorage { if _, ok = sts.jetstreamTieredMemoryUsed[stream.Config.Replicas]; ok {