+ fix fujitsu cpu

This commit is contained in:
garnier-quentin 2015-08-21 15:54:30 +02:00
parent 23b268c0eb
commit 1dfcaf8a20
1 changed files with 2 additions and 1 deletions

View File

@ -173,6 +173,7 @@ sub manage_selection {
command => $self->{option_results}->{command}, command => $self->{option_results}->{command},
command_path => $self->{option_results}->{command_path}, command_path => $self->{option_results}->{command_path},
command_options => $self->{option_results}->{command_options}); command_options => $self->{option_results}->{command_options});
# Can have 4 columns also.
#Location Busy Rate(%) Copy Residual Quantity(MB) #Location Busy Rate(%) Copy Residual Quantity(MB)
#--------------------- ------------ -------------------------- #--------------------- ------------ --------------------------
@ -185,7 +186,7 @@ sub manage_selection {
$self->{cpu} = {}; $self->{cpu} = {};
foreach (split /\n/, $stdout) { foreach (split /\n/, $stdout) {
next if ($_ !~ /^(.*?)\s+(\d+)\s+\S+$/); next if ($_ !~ /^(CM.*?)\s{2,}(\d+)\s+\S+/);
my ($cpu_name, $cpu_value) = ($1, $2); my ($cpu_name, $cpu_value) = ($1, $2);
if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' &&