minor fix

This commit is contained in:
fbsanchez 2020-03-25 18:13:12 +01:00
parent fecff8aa93
commit 8d8474e67e
1 changed files with 3 additions and 2 deletions

View File

@ -860,8 +860,9 @@ sub PandoraFMS::Recon::Base::report_scanned_agents($) {
$checked = scalar @map;
}
$checked = $data->{'agent'}{'checked'}
if $checked < $data->{'agent'}{'checked'};
$checked = $data->{'agent'}{'checked'} if
is_enabled($data->{'agent'}{'checked'})
&& $checked < $data->{'agent'}{'checked'};
# Register target agent if enabled.
if (is_enabled($checked)