mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
some tiny output adjustments, no new tarball
This commit is contained in:
parent
1e5d3a4e41
commit
97c23714e8
7
inxi
7
inxi
|
@ -7698,6 +7698,7 @@ get_raid_component_data_bsd()
|
||||||
zpool_status="$( zpool status $device )"
|
zpool_status="$( zpool status $device )"
|
||||||
# we will remove ONLINE for status and only use OFFLINE/DEGRADED as tests
|
# we will remove ONLINE for status and only use OFFLINE/DEGRADED as tests
|
||||||
# for print output display of issues with components
|
# for print output display of issues with components
|
||||||
|
# note: different zfs outputs vary, some have the components listed by line
|
||||||
for component in ${a_raid_data[3]}
|
for component in ${a_raid_data[3]}
|
||||||
do
|
do
|
||||||
component_status=$( gawk '
|
component_status=$( gawk '
|
||||||
|
@ -9094,7 +9095,7 @@ print_short_data()
|
||||||
local cpu_clock="${a_cpu_working[1]}" # old CPU3
|
local cpu_clock="${a_cpu_working[1]}" # old CPU3
|
||||||
# this gets that weird min/max final array item, which almost never contains any data of use
|
# this gets that weird min/max final array item, which almost never contains any data of use
|
||||||
local min_max_clock_nu=$(( ${#A_CPU_DATA[@]} - 1 ))
|
local min_max_clock_nu=$(( ${#A_CPU_DATA[@]} - 1 ))
|
||||||
local min_max_clock=${A_CPU_DATA[$min_max_clock_nu]}
|
local min_max_clock=${A_CPU_DATA[$min_max_clock_nu]/.* Mhz/ Mhz}
|
||||||
# this handles the case of for example ARM cpus, which will not have data for
|
# this handles the case of for example ARM cpus, which will not have data for
|
||||||
# min/max, since they don't have speed. Since that sets a flag, not found, just
|
# min/max, since they don't have speed. Since that sets a flag, not found, just
|
||||||
# look for that and use the speed from the first array array, same where we got
|
# look for that and use the speed from the first array array, same where we got
|
||||||
|
@ -9295,7 +9296,7 @@ print_cpu_data()
|
||||||
local cpc_plural='' cpu_count_print='' model_plural='' cpu_data_string=''
|
local cpc_plural='' cpu_count_print='' model_plural='' cpu_data_string=''
|
||||||
local cpu_physical_count='' cpu_core_count='' cpu_core_alpha='' cpu_type=''
|
local cpu_physical_count='' cpu_core_count='' cpu_core_alpha='' cpu_type=''
|
||||||
local cpu_2_data='' working_cpu=''
|
local cpu_2_data='' working_cpu=''
|
||||||
local line_starter="CPU$SEP3" multi_cpu_starter="${C1}Clock Speeds$SEP3${C2} "
|
local line_starter="CPU:" multi_cpu_starter="${C1}Clock Speeds$SEP3${C2} "
|
||||||
|
|
||||||
##print_screen_output "A_CPU_DATA[0]=\"${A_CPU_DATA[0]}\""
|
##print_screen_output "A_CPU_DATA[0]=\"${A_CPU_DATA[0]}\""
|
||||||
# Array A_CPU_DATA always has one extra element: max clockfreq found.
|
# Array A_CPU_DATA always has one extra element: max clockfreq found.
|
||||||
|
@ -9334,7 +9335,7 @@ print_cpu_data()
|
||||||
cpu_count_print="$cpu_physical_count "
|
cpu_count_print="$cpu_physical_count "
|
||||||
model_plural='s'
|
model_plural='s'
|
||||||
fi
|
fi
|
||||||
line_starter="CPU$cpc_plural$SEP3"
|
line_starter="CPU$cpc_plural:"
|
||||||
cpu_data_string="$cpu_count_print$cpu_core_alpha core"
|
cpu_data_string="$cpu_count_print$cpu_core_alpha core"
|
||||||
cpu_data="${C1}$cpu_data_string${C2} ${a_cpu_working[0]}$model_plural ($cpu_type)"
|
cpu_data="${C1}$cpu_data_string${C2} ${a_cpu_working[0]}$model_plural ($cpu_type)"
|
||||||
if [[ $B_SHOW_CPU == 'true' ]];then
|
if [[ $B_SHOW_CPU == 'true' ]];then
|
||||||
|
|
Loading…
Reference in a new issue