fixed count

This commit is contained in:
alejandro.campos@artica.es 2021-10-05 11:26:29 +02:00
parent d1b9dc4ef8
commit ec693a88a0
1 changed files with 2 additions and 2 deletions

View File

@ -1652,9 +1652,9 @@ class DiscoveryTaskList extends HTML
$license = enterprise_hook('license_get_info'); $license = enterprise_hook('license_get_info');
if (is_array($license) === true 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( echo json_encode(
[ [
'error' => __( 'error' => __(