Skip to content

Commit

Permalink
Remove -1 on the /agents/summary
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanchez91 committed Nov 25, 2020
1 parent 0c3fd24 commit b092309
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/controllers/wazuh-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,12 +1450,12 @@ export class WazuhApiCtrl {

if (summary) {
Object.assign(result.summary, {
agentsCountActive: summary.Active - 1,
agentsCountActive: summary.Active,
agentsCountDisconnected: summary.Disconnected,
agentsCountNeverConnected: summary['Never connected'],
agentsCountTotal: summary.Total - 1,
agentsCountTotal: summary.Total,
agentsCoverity:
summary.Total - 1 ? ((summary.Active - 1) / (summary.Total - 1)) * 100 : 0,
summary.Total ? ((summary.Active) / (summary.Total)) * 100 : 0,
});
}

Expand Down

0 comments on commit b092309

Please sign in to comment.