Skip to content

Commit

Permalink
tidy and assuage critic with another //x
Browse files Browse the repository at this point in the history
  • Loading branch information
chicks-net committed Dec 2, 2014
1 parent a812e5b commit c9196c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions megamap
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ foreach my $line (@megalines) {
if ( $line =~ /^SAS[ ]Address\(0\)/x ) {
$line =~ s/.* //;
$slot_map{$slot} = { megacli_sas => $line };
my $linux = $line;
my $linux = $line;
my $linux2 = $line;
my $end = hex substr( $linux, 0 - $END_WINDOW );
my $end = hex substr( $linux, 0 - $END_WINDOW );
$end--;
$end = sprintf "%07x", $end;
substr( $linux, 0 - $END_WINDOW ) = $end;
Expand All @@ -65,7 +65,7 @@ foreach my $line (@megalines) {
}

my $linux_wwn = 'unk';
if ( $ls_out =~ /wwn-(0x[\da-f]+) / ) {
if ( $ls_out =~ /wwn-(0x[\da-f]+)[ ]/x ) {
$linux_wwn = $1 || 'bug';
}
$slot_map{$slot}->{linux} = $linux_wwn;
Expand Down

0 comments on commit c9196c2

Please sign in to comment.