#9362 Change getInforTAgenteDatos count alert

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

View File

@ -1276,11 +1276,16 @@ class Diagnostics extends Wizard
FROM tagente_datos'
);
$modulesDataCount = db_get_value_sql(
'SELECT COUNT(*) * 300 as total FROM tmodule_inventory'
);
$modulesDataCount = ($modulesDataCount >= 500000) ? $modulesDataCount : 500000;
$taMsg = __(
'The tagente_datos table contains too much data. A historical database is recommended.'
);
$taStatus = 0;
if ($agentDataCount <= 3000000) {
if ($agentDataCount <= $modulesDataCount) {
$taMsg = __(
'The tagente_datos table contains an acceptable amount of data.'
);