-I, -S line changes

This commit is contained in:
Harald Hope 2023-11-20 20:01:23 -08:00
parent 80cfab71f1
commit 1dd1d44033

6
pinxi
View file

@ -36639,7 +36639,7 @@ sub system_item {
my $data = { my $data = {
$data_name => [{}], $data_name => [{}],
}; };
$index = scalar(@{$data->{$data_name}}) - 1; $index = 0;
if ($show{'host'}){ if ($show{'host'}){
$data->{$data_name}[$index]{main::key($num++,0,1,'Host')} = main::get_hostname(); $data->{$data_name}[$index]{main::key($num++,0,1,'Host')} = main::get_hostname();
} }
@ -36668,7 +36668,6 @@ sub system_item {
} }
} }
if ($b_admin && (my $params = KernelParameters::get())){ if ($b_admin && (my $params = KernelParameters::get())){
# $index = scalar(@{$data{$data_name}}); # not on own line for now
# print "$params\n"; # print "$params\n";
if ($use{'filter-label'}){ if ($use{'filter-label'}){
$params = main::filter_partition('system', $params, 'label'); $params = main::filter_partition('system', $params, 'label');
@ -36677,8 +36676,9 @@ sub system_item {
$params = main::filter_partition('system', $params, 'uuid'); $params = main::filter_partition('system', $params, 'uuid');
} }
$data->{$data_name}[$index]{main::key($num++,0,2,'parameters')} = $params; $data->{$data_name}[$index]{main::key($num++,0,2,'parameters')} = $params;
$index = scalar(@{$data->{$data_name}});
} }
$index++;
# note: tty can have the value of 0 but the two tools # note: tty can have the value of 0 but the two tools
# return '' if undefined, so we test for explicit '' # return '' if undefined, so we test for explicit ''
if ($b_display){ if ($b_display){