This commit is contained in:
Harald Hope 2018-05-06 20:59:43 -07:00
parent b4339731ba
commit b9d20bc198

3
inxi
View file

@ -7100,7 +7100,7 @@ sub get {
@data = OpticalData::get();
@rows = (@rows,@data);
}
($b_hddtemp,$b_nvme,$hddtemp,$nvme) = (undef,undef,undef,undef,undef);
($b_hddtemp,$b_nvme,$hddtemp,$nvme) = (undef,undef,undef,undef);
(@by_id,@by_path) = (undef,undef);
eval $end if $b_log;
return @rows;
@ -7361,7 +7361,6 @@ sub proc_data_advanced {
foreach my $ref (@scsi){
my %row = %$ref;
if ($row{'model'}){
# $row{'model'} =~ s/\s/_/g;
$row{'model'} = (split /\s*-\s*/,$row{'model'})[0];
foreach my $id (@by_id){
if ($id =~ /$row{'model'}/ && "/dev/$drives[$i]{'id'}" eq Cwd::abs_path($id)){