Skip to content

Commit

Permalink
[graphql] Use sessions with session ids to get the session count
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Sep 17, 2021
1 parent 01b672e commit a45202d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/grid/graphql/Grid.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public int getSessionCount() {
.map(NodeStatus::getSlots)
.flatMap(Collection::stream)
.filter(slot -> slot.getSession()!=null)
.filter(slot -> !slot.getSession().getId().equals(RESERVED))
.mapToInt(slot -> 1)
.sum();
}
Expand Down

0 comments on commit a45202d

Please sign in to comment.