Skip to content

Commit

Permalink
flatten tiered limits (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Lloyd <[email protected]>
  • Loading branch information
caleblloyd authored Dec 11, 2023
1 parent 885feca commit b4008fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions surveyor/collector_statz.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b4008fc

Please sign in to comment.