mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
cleanups
This commit is contained in:
parent
b4339731ba
commit
b9d20bc198
3
inxi
3
inxi
|
@ -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)){
|
||||
|
|
Loading…
Reference in a new issue