Commit 3be95e17 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Do not add together presence count across nodes in dev console status view.

parent 63609454
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Default runtime HTTP key value is no longer the same as the default Server key value.
- Group create now returns HTTP 409 Conflict/GRPC Code 6 when group name is already in use.
- Allow Console API requests to return results above default size limit.
- Developer console presence count is no longer added together across nodes.

### Fixed
- Correctly handle errors when concurrently writing new storage objects.
+6 −6

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ class Status extends Component<Props, State> {
      .reduce((total, value) => total + value, 0);
    const total_presences = data.nodes
      .map(n => n.presence_count || 0)
      .reduce((total, value) => total + value, 0);
      .reduce((total, value) => Math.max(total, value), 0);
    const total_authoritative_matches = data.nodes
      .map(n => n.match_count || 0)
      .reduce((total, value) => total + value, 0);