This commit is contained in:
Harald Hope 2023-12-19 21:34:31 -08:00
parent 5ca3c4c336
commit 64265a929e

12
pinxi
View file

@ -30367,15 +30367,15 @@ sub set_gpart_data {
} }
} }
## DisplayManagerData ## DmData
# Public method: get() # Public method: get()
# returns hash of array of arrays for dm/lm # returns hash ref of array of arrays for dm/lm
# hash: dm, lm # hash: dm, lm
# 0: dm/lm print name # 0: dm/lm print name
# 1: dm version # 1: dm/lm version
# 2: dm status # 2: dm/lm status
{ {
package DisplayManagerData; package DmData;
my ($found,@glob); my ($found,@glob);
sub get { sub get {
@ -36921,7 +36921,7 @@ sub system_item {
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();
} }
my $dms = DisplayManagerData::get(); my $dms = DmData::get();
my $dm_key = (!$dms->{'dm'} && $dms->{'lm'}) ? 'Login' : 'DM'; my $dm_key = (!$dms->{'dm'} && $dms->{'lm'}) ? 'Login' : 'DM';
my $kernel_data = main::get_kernel_data(); my $kernel_data = main::get_kernel_data();
$data->{$data_name}[$index]{main::key($num++,1,1,'Kernel')} = $kernel_data->[0]; $data->{$data_name}[$index]{main::key($num++,1,1,'Kernel')} = $kernel_data->[0];