Merge branch 'ent-11441-15692-aviso-sobre-agent-access-statistics-aparece-cada-dia' into 'develop'

Ent 11441 15692 aviso sobre agent access statistics aparece cada dia

See merge request artica/pandorafms!6060
This commit is contained in:
Matias Didier 2023-07-11 13:20:08 +00:00
commit 01de48631c

View File

@ -679,9 +679,12 @@ class ConsoleSupervisor
*/ */
public function checkAccessStatisticsPerformance() public function checkAccessStatisticsPerformance()
{ {
global $config;
$total_agents = db_get_value('count(*)', 'tagente'); $total_agents = db_get_value('count(*)', 'tagente');
if ($total_agents >= 200) { if ($total_agents >= 200) {
if ($config['agentaccess'] !== 0) {
db_process_sql_update('tconfig', ['value' => 0], ['token' => 'agentaccess']); db_process_sql_update('tconfig', ['value' => 0], ['token' => 'agentaccess']);
$this->notify( $this->notify(
[ [
@ -693,6 +696,7 @@ class ConsoleSupervisor
'url' => '__url__/index.php?sec=general&sec2=godmode/setup/setup&section=perf', 'url' => '__url__/index.php?sec=general&sec2=godmode/setup/setup&section=perf',
] ]
); );
}
} else { } else {
$this->cleanNotifications('NOTIF.ACCESSSTASTICS.PERFORMANCE'); $this->cleanNotifications('NOTIF.ACCESSSTASTICS.PERFORMANCE');
} }