Skip to content

Commit

Permalink
Merge pull request #651 from jehiah/nsqadmin_deferred_651
Browse files Browse the repository at this point in the history
nsqadmin: fix deferred message count
  • Loading branch information
mreiferson committed Sep 21, 2015
2 parents d3e10cc + bedc5e3 commit 094cf92
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion internal/clusterinfo/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type ChannelStats struct {
MemoryDepth int64 `json:"memory_depth"`
BackendDepth int64 `json:"backend_depth"`
InFlightCount int64 `json:"in_flight_count"`
DeferredCount int64 `json:"defer_count"`
DeferredCount int64 `json:"deferred_count"`
RequeueCount int64 `json:"requeue_count"`
TimeoutCount int64 `json:"timeout_count"`
MessageCount int64 `json:"message_count"`
Expand Down
28 changes: 14 additions & 14 deletions nsqadmin/bindata.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nsqadmin/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func TestHTTPChannelGET(t *testing.T) {
equal(t, js.Get("message_count").MustInt(), 0)
equal(t, js.Get("paused").MustBool(), false)
equal(t, js.Get("in_flight_count").MustInt(), 0)
equal(t, js.Get("defer_count").MustInt(), 0)
equal(t, js.Get("deferred_count").MustInt(), 0)
equal(t, js.Get("requeue_count").MustInt(), 0)
equal(t, js.Get("timeout_count").MustInt(), 0)
equal(t, len(js.Get("clients").MustArray()), 0)
Expand Down Expand Up @@ -263,7 +263,7 @@ func TestHTTPNodesSingleGET(t *testing.T) {
equal(t, testTopic.Get("message_count").MustInt(), 0)
equal(t, testTopic.Get("paused").MustBool(), false)
equal(t, testTopic.Get("in_flight_count").MustInt(), 0)
equal(t, testTopic.Get("defer_count").MustInt(), 0)
equal(t, testTopic.Get("deferred_count").MustInt(), 0)
equal(t, testTopic.Get("requeue_count").MustInt(), 0)
equal(t, testTopic.Get("timeout_count").MustInt(), 0)
}
Expand Down
2 changes: 1 addition & 1 deletion nsqadmin/static/js/views/topic.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
<td>{{commafy depth}}</td>
<td>{{commafy memory_depth}} + {{commafy backend_depth}}</td>
<td>{{commafy in_flight_count}}</td>
<td>{{commafy defer_count}}</td>
<td>{{commafy deferred_count}}</td>
<td>{{commafy requeue_count}}</td>
<td>{{commafy timeout_count}}</td>
<td>{{commafy message_count}}</td>
Expand Down

0 comments on commit 094cf92

Please sign in to comment.