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}->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;
|
||||
|
|
Loading…
Reference in New Issue