Skip to content

Commit b092309

Browse files
committed
Remove -1 on the /agents/summary
1 parent 0c3fd24 commit b092309

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/controllers/wazuh-api.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1450,12 +1450,12 @@ export class WazuhApiCtrl {
14501450

14511451
if (summary) {
14521452
Object.assign(result.summary, {
1453-
agentsCountActive: summary.Active - 1,
1453+
agentsCountActive: summary.Active,
14541454
agentsCountDisconnected: summary.Disconnected,
14551455
agentsCountNeverConnected: summary['Never connected'],
1456-
agentsCountTotal: summary.Total - 1,
1456+
agentsCountTotal: summary.Total,
14571457
agentsCoverity:
1458-
summary.Total - 1 ? ((summary.Active - 1) / (summary.Total - 1)) * 100 : 0,
1458+
summary.Total ? ((summary.Active) / (summary.Total)) * 100 : 0,
14591459
});
14601460
}
14611461

0 commit comments

Comments
 (0)