Skip to content

Commit

Permalink
Merge pull request #1134 from ploxiln/nsqadmin_client_count
Browse files Browse the repository at this point in the history
nsqadmin: connections count fixes
  • Loading branch information
ploxiln authored Feb 11, 2019
2 parents c3c364e + 69cdeba commit cbdcd54
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 47 deletions.
3 changes: 2 additions & 1 deletion nsqadmin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ Read the [docs](http://nsq.io/components/nsqadmin.html)

## Working Locally

0. install nodejs 8.x (includes npm)
1. `$ npm install`
2. `$ ./gulp clean watch` or `$ ./gulp clean build`
2. `$ ./gulp --series clean watch` or `$ ./gulp --series clean build`
3. `$ go-bindata --debug --pkg=nsqadmin --prefix=static/build static/build/...`
4. `$ go build && ./nsqadmin`
5. make changes (repeat step 5 if you make changes to any Go code)
Expand Down
80 changes: 40 additions & 40 deletions nsqadmin/bindata.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nsqadmin/gulp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
exec ./node_modules/.bin/gulp $@
#!/bin/sh
exec ./node_modules/.bin/gulp "$@"
6 changes: 3 additions & 3 deletions nsqadmin/static/js/views/channel.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{{#if ../graph_active}}
<td class="bold rate" target="{{rate "topic" node topic_name ""}}"></td>
{{/if}}
<td>{{commafy clients.length}}</td>
<td>{{commafy client_count}}</td>
{{#if e2e_processing_latency.percentiles.length}}
{{#each e2e_processing_latency.percentiles}}
<td>
Expand Down Expand Up @@ -129,10 +129,10 @@
<td>{{commafy requeue_count}}</td>
<td>{{commafy timeout_count}}</td>
<td>{{commafy message_count}}</td>
{{#if ../graph_active}}
{{#if graph_active}}
<td class="bold rate" target="{{rate "topic" node topic_name ""}}"></td>
{{/if}}
<td>{{commafy clients.length}}</td>
<td>{{commafy client_count}}</td>
{{#if e2e_processing_latency.percentiles.length}}
{{#each e2e_processing_latency.percentiles}}
<td>
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 @@ -188,7 +188,7 @@
<td>{{commafy requeue_count}}</td>
<td>{{commafy timeout_count}}</td>
<td>{{commafy message_count}}</td>
<td>{{commafy clients.length}}</td>
<td>{{commafy client_count}}</td>
{{#if e2e_processing_latency.percentiles.length}}
{{#each e2e_processing_latency.percentiles}}
<td>
Expand Down

0 comments on commit cbdcd54

Please sign in to comment.