mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
fix cpu mode refs #6013
This commit is contained in:
parent
2fadc05762
commit
faa068df60
@ -109,7 +109,7 @@ sub run {
|
|||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
if ($cpu_usage =~ /^.*\((\S+)%\).*\((\S+)%\).*\((\S+)%\)/) {
|
if ($cpu_usage =~ /^.*\(\s*(\S+)%\).*\(\s*(\S+)%\).*\(\s*(\S+)%\)/) {
|
||||||
my $cpu5sec = $1;
|
my $cpu5sec = $1;
|
||||||
my $cpu1min = $2;
|
my $cpu1min = $2;
|
||||||
my $cpu5min = $3;
|
my $cpu5min = $3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user