From faa068df603def37666840070b84ed42c909f73c Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Thu, 4 Dec 2014 13:47:49 +0100 Subject: [PATCH] fix cpu mode refs #6013 --- centreon/common/fastpath/mode/cpu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/common/fastpath/mode/cpu.pm b/centreon/common/fastpath/mode/cpu.pm index 59b2517bd..937cfc652 100644 --- a/centreon/common/fastpath/mode/cpu.pm +++ b/centreon/common/fastpath/mode/cpu.pm @@ -109,7 +109,7 @@ sub run { $self->{output}->display(); $self->{output}->exit(); } - if ($cpu_usage =~ /^.*\((\S+)%\).*\((\S+)%\).*\((\S+)%\)/) { + if ($cpu_usage =~ /^.*\(\s*(\S+)%\).*\(\s*(\S+)%\).*\(\s*(\S+)%\)/) { my $cpu5sec = $1; my $cpu1min = $2; my $cpu5min = $3;