fix foreach in processcount mode
This commit is contained in:
parent
eb642995f4
commit
eca62ad921
|
@ -338,7 +338,7 @@ sub run {
|
||||||
|
|
||||||
foreach my $pid (keys %{$self->{results}}) {
|
foreach my $pid (keys %{$self->{results}}) {
|
||||||
my $long_msg = sprintf("Process '%s'", $pid);
|
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});
|
$long_msg .= sprintf(" [%s: %s]", $key, $self->{results}->{$pid}->{$key});
|
||||||
}
|
}
|
||||||
$self->{output}->output_add(long_msg => $long_msg);
|
$self->{output}->output_add(long_msg => $long_msg);
|
||||||
|
|
Loading…
Reference in New Issue