13212-Fix calc of modules/agentes

This commit is contained in:
Pablo Aragon 2024-04-03 12:46:22 +02:00
parent 4c626f9f97
commit bcfc94b9e5
1 changed files with 1 additions and 2 deletions

View File

@ -3328,7 +3328,7 @@ class ConsoleSupervisor
'SELECT count(*) AS count
FROM tagente a
LEFT JOIN tagente_modulo m ON a.id_agente = m.id_agente
WHERE m.disabled = 0 AND m.disabled_by_safe_mode = 0
WHERE m.disabled = 0
GROUP BY m.id_agente'
);
@ -3339,7 +3339,6 @@ class ConsoleSupervisor
$modules = array_sum(array_column($modules_by_agent, 'count'));
$ratio = ($modules / $agents);
// $ratio = round($ratio);
$ratio = round($ratio, 2);
}