Trivial update

This commit is contained in:
Harald Hope 2017-10-28 19:15:14 -07:00
parent ecfa0d87a4
commit 37728af43f

16
inxi
View file

@ -7339,17 +7339,17 @@ get_hdd_data_basic()
fi
if swapctl -l -k &>/dev/null;then
swap_size=$( swapctl -l -k 2>/dev/null | gawk '
BEGIN {
swapSize=0
total=0
}
( $1 ~ /^\/dev/ ) && ( $2 ~ /^[0-9]+$/ ) {
BEGIN {
swapSize=0
total=0
}
( $1 ~ /^\/dev/ ) && ( $2 ~ /^[0-9]+$/ ) {
total += $2
}
END {
}
END {
# result in blocks already
print total
}' )
}' )
fi
fi
# echo ss: $swap_size