Skip to content

Commit

Permalink
nsqadmin: fix message_count
Browse files Browse the repository at this point in the history
  • Loading branch information
jehiah committed Aug 6, 2015
1 parent 862f307 commit 11951cf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions internal/clusterinfo/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type TopicStats struct {
Depth int64 `json:"depth"`
MemoryDepth int64 `json:"memory_depth"`
BackendDepth int64 `json:"backend_depth"`
MessageCount int64 `json:"msg_count"`
MessageCount int64 `json:"message_count"`
NodeStats []*TopicStats `json:"nodes"`
Channels []*ChannelStats `json:"channels"`
Paused bool `json:"paused"`
Expand Down Expand Up @@ -147,7 +147,7 @@ type ChannelStats struct {
DeferredCount int64 `json:"defer_count"`
RequeueCount int64 `json:"requeue_count"`
TimeoutCount int64 `json:"timeout_count"`
MessageCount int64 `json:"msg_count"`
MessageCount int64 `json:"message_count"`
ClientCount int `json:"-"`
Selected bool `json:"-"`
NodeStats []*ChannelStats `json:"nodes"`
Expand Down
16 changes: 8 additions & 8 deletions nsqadmin/bindata.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nsqadmin/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestHTTPTopicGET(t *testing.T) {
equal(t, js.Get("depth").MustInt(), 0)
equal(t, js.Get("memory_depth").MustInt(), 0)
equal(t, js.Get("backend_depth").MustInt(), 0)
equal(t, js.Get("msg_count").MustInt(), 0)
equal(t, js.Get("message_count").MustInt(), 0)
equal(t, js.Get("paused").MustBool(), false)
}

Expand Down

0 comments on commit 11951cf

Please sign in to comment.