fix foreach in processcount mode

This commit is contained in:
cgagnaire 2018-02-14 11:58:31 +01:00 committed by GitHub
parent dfcdc8b2be
commit 9b516e9a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ sub run {
foreach my $pid (keys %{$self->{results}}) {
my $long_msg = sprintf("Process '%s'", $pid);
for my $key (keys $self->{results}->{$pid}) {
foreach my $key (keys %{$self->{results}->{$pid}}) {
$long_msg .= sprintf(" [%s: %s]", $key, $self->{results}->{$pid}->{$key});
}
$self->{output}->output_add(long_msg => $long_msg);