mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
fixed a logging bug, won't have any impact on users.
This commit is contained in:
parent
bf4333570e
commit
bd15318705
2
inxi
2
inxi
|
@ -4951,7 +4951,7 @@ get_partition_data()
|
||||||
if [[ $( grep -cs '[[:space:]]/$' <<< "$main_partition_data" ) -gt 1 ]];then
|
if [[ $( grep -cs '[[:space:]]/$' <<< "$main_partition_data" ) -gt 1 ]];then
|
||||||
main_partition_data="$( grep -vs '^rootfs' <<< "$main_partition_data" )"
|
main_partition_data="$( grep -vs '^rootfs' <<< "$main_partition_data" )"
|
||||||
fi
|
fi
|
||||||
log_function_data 'post-rootfs-filter' "main_partition_data:\n$main_partition_data\n\nswap_data:\n$swap_data"
|
log_function_data 'raw' "main_partition_data_post_rootfs:\n$main_partition_data\n\nswap_data:\n$swap_data"
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
# sample line: /dev/sda2 ext3 15G 8.9G 4.9G 65% /home
|
# sample line: /dev/sda2 ext3 15G 8.9G 4.9G 65% /home
|
||||||
# $NF = partition name; $(NF - 4) = partition size; $(NF - 3) = used, in gB; $(NF - 1) = percent used
|
# $NF = partition name; $(NF - 4) = partition size; $(NF - 3) = used, in gB; $(NF - 1) = percent used
|
||||||
|
|
Loading…
Reference in a new issue