Skip to content

Commit

Permalink
Fix RDB.CurrentStats to report the correct queue size
Browse files Browse the repository at this point in the history
  • Loading branch information
hibiken committed Apr 11, 2022
1 parent eb064c2 commit 47af17c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/rdb/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func (r *RDB) CurrentStats(qname string) (*Stats, error) {
stats.Groups = val
case "aggregating_count":
stats.Aggregating = val
size += val
}
}
stats.Size = size
Expand Down
2 changes: 1 addition & 1 deletion internal/rdb/inspect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func TestCurrentStats(t *testing.T) {
want: &Stats{
Queue: "default",
Paused: false,
Size: 4,
Size: 5,
Groups: 1,
Pending: 1,
Active: 1,
Expand Down

0 comments on commit 47af17c

Please sign in to comment.