From ec693a88a0f30d1063e7189c43b8c2bef1e7861a Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Tue, 5 Oct 2021 11:26:29 +0200 Subject: [PATCH] fixed count --- pandora_console/godmode/wizards/DiscoveryTaskList.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 65eeb50d1a..245c2ae876 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -1652,9 +1652,9 @@ class DiscoveryTaskList extends HTML $license = enterprise_hook('license_get_info'); if (is_array($license) === true - && $n_agents > ($license['limit'] - $license['count']) + && $n_agents > ($license['limit'] - $license['count_enabled']) ) { - $limit = ($license['limit'] - $license['count']); + $limit = ($license['limit'] - $license['count_enabled']); echo json_encode( [ 'error' => __(