mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
Fix cpu option Refs #5152
This commit is contained in:
parent
ac1e0c7be2
commit
ac35baf1fc
@ -120,8 +120,8 @@ sub check_options {
|
|||||||
if (defined($self->{option_results}->{cpu})) {
|
if (defined($self->{option_results}->{cpu})) {
|
||||||
$self->{statefile_cache}->check_options(%options);
|
$self->{statefile_cache}->check_options(%options);
|
||||||
# Construct filter for file cache (avoid one check erase one other)
|
# Construct filter for file cache (avoid one check erase one other)
|
||||||
my %labels = ('process_name', 'regexp_name', 'process_path', 'regexp_path', 'process_args', 'regexp_args', 'process_status');
|
my @labels = ('process_name', 'regexp_name', 'process_path', 'regexp_path', 'process_args', 'regexp_args', 'process_status');
|
||||||
foreach (keys %labels) {
|
foreach (@labels) {
|
||||||
if (defined($self->{option_results}->{$_})) {
|
if (defined($self->{option_results}->{$_})) {
|
||||||
$self->{filter4md5} .= ',' . $self->{option_results}->{$_};
|
$self->{filter4md5} .= ',' . $self->{option_results}->{$_};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user