From b4008fc1e05083438b7f1dbcf330eaf0c6c51d56 Mon Sep 17 00:00:00 2001 From: Caleb Lloyd <2414837+caleblloyd@users.noreply.github.com> Date: Mon, 11 Dec 2023 14:47:30 -0500 Subject: [PATCH] flatten tiered limits (#176) 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 {