From 6f2b50af569f2b12e88f36fff7a4a91d8fe5a017 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 4 Jan 2023 11:16:51 +0100 Subject: [PATCH] #9362 Change getInforTAgenteDatos count alert --- pandora_console/include/class/Diagnostics.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/class/Diagnostics.class.php b/pandora_console/include/class/Diagnostics.class.php index db9f459f00..768d0c1204 100644 --- a/pandora_console/include/class/Diagnostics.class.php +++ b/pandora_console/include/class/Diagnostics.class.php @@ -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.' );