mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
cleanup of hanging and loose variables
This commit is contained in:
parent
fbff2fbed9
commit
90779b6369
6
inxi
6
inxi
|
@ -1186,7 +1186,7 @@ get_memory_data()
|
|||
get_networking_data()
|
||||
{
|
||||
IFS=$'\n'
|
||||
A_NETWORK_DATA=( $( echo "$lspci_data" | C1=${C1} C2=${C2} gawk '
|
||||
A_NETWORK_DATA=( $( echo "$lspci_data" | gawk '
|
||||
BEGIN { IGNORECASE=1 }
|
||||
/^[0-9a-f:.]+ (ethernet|network) (controller|bridge)/ || /^[0-9a-f:.]+ [^:]+: .*(ethernet|network).*$/ {
|
||||
nic=gensub(/^[0-9a-f:.]+ [^:]+: (.+)$/,"\\1","g",$0)
|
||||
|
@ -1450,8 +1450,8 @@ print_cpu_data()
|
|||
# args: $1 - cpu flag string
|
||||
print_cpu_flags_full()
|
||||
{
|
||||
local flag='' cpu_flags_full="$1" cpu_flags_1='' cpu_flags_2='' cpu_flags_3='' i=0
|
||||
local flag_count=$( wc -w <<< "$" ) flag_data=''
|
||||
local cpu_flags_full="$1" cpu_flags_1='' cpu_flags_2='' cpu_flags_3='' flag_data=''
|
||||
local i=0 flag=''
|
||||
|
||||
for flag in $cpu_flags_full
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue