Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuRA committed Dec 19, 2024
1 parent b503e70 commit d6f8a3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/xo-server/src/xo-mixins/rest-api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ async function _getDashboardStats(app) {
let nUnreachableServers = 0
let nUnknownServers = 0
servers.forEach(server => {
// it may happen that some servers are marked as "connected", but no pool matches "server.pool"
// so they are counted as `nUnknownServers`
if (server.status === 'connected' && poolIds.includes(server.poolId)) {
nConnectedServers++
return
Expand Down

0 comments on commit d6f8a3b

Please sign in to comment.