Skip to content

Commit

Permalink
Add Server var to ServerStats struct
Browse files Browse the repository at this point in the history
  • Loading branch information
withernet authored and nemith committed Feb 9, 2022
1 parent 566b763 commit 9288335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions flw.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func FLWSrvr(servers []string, timeout time.Duration) ([]*ServerStats, bool) {
ncnt, _ := strconv.ParseInt(match[11], 0, 64)

ss[i] = &ServerStats{
Server: servers[i],
Sent: sent,
Received: recv,
NodeCount: ncnt,
Expand Down
1 change: 1 addition & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type ServerClients struct {

// ServerStats is the information pulled from the Zookeeper `stat` command.
type ServerStats struct {
Server string
Sent int64
Received int64
NodeCount int64
Expand Down

0 comments on commit 9288335

Please sign in to comment.