#9362 Change sql for count modules from tagente_datos

This commit is contained in:
Jonathan 2023-01-04 11:36:26 +01:00
parent 6f2b50af56
commit bc6893b83e
1 changed files with 1 additions and 1 deletions

View File

@ -1277,7 +1277,7 @@ class Diagnostics extends Wizard
);
$modulesDataCount = db_get_value_sql(
'SELECT COUNT(*) * 300 as total FROM tmodule_inventory'
'SELECT count(*) * 300 FROM (SELECT * FROM tagente_datos GROUP BY id_agente_modulo) AS totalmodules'
);
$modulesDataCount = ($modulesDataCount >= 500000) ? $modulesDataCount : 500000;