diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index eaa43e388f..6dedc5fe0b 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -1311,10 +1311,10 @@ sub PandoraFMS::Recon::Base::report_scanned_agents($;$) { my ($progress, $step) = (90, 10.0 / scalar(@hosts)); # From 90% to 100%. foreach my $addr (keys %{$self->{'agents_found'}}) { - next if is_empty($addr); - my $label = $self->{'agents_found'}->{$addr}{'agent'}{'nombre'}; + next if is_empty($label); + $self->call('update_progress', $progress); $progress += $step; # Store temporally. Wait user approval.