fix cpu mode refs #6013

This commit is contained in:
Kevin Duret 2014-12-04 13:47:49 +01:00
parent 2fadc05762
commit faa068df60
1 changed files with 1 additions and 1 deletions

View File

@ -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;