Skip to content

Commit

Permalink
Merge pull request #477 from ramonberrutti/feature/add_num_subjects_info
Browse files Browse the repository at this point in the history
Add stream number of subject info
  • Loading branch information
ripienaar committed Jun 1, 2022
2 parents 784dd9f + 126ea59 commit 7a94115
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/stream_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,10 @@ func (c *streamCmd) showStreamInfo(info *api.StreamInfo) {

fmt.Printf(" Active Consumers: %d\n", info.State.Consumers)

if info.State.NumSubjects > 0 { // available from 2.8
fmt.Printf(" Number of Subjects: %d\n", info.State.NumSubjects)
}

if len(info.Alternates) > 0 {
fmt.Printf(" Alternates: ")
lName := 0
Expand Down

0 comments on commit 7a94115

Please sign in to comment.