From 37728af43f32af561ebca7d228a8e9ee1429d916 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Sat, 28 Oct 2017 19:15:14 -0700 Subject: [PATCH] Trivial update --- inxi | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/inxi b/inxi index b7b6948..ecaf2f6 100755 --- a/inxi +++ b/inxi @@ -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]+$/ ) { - total += $2 - } - END { - # result in blocks already - print total - }' ) +BEGIN { +swapSize=0 +total=0 +} +( $1 ~ /^\/dev/ ) && ( $2 ~ /^[0-9]+$/ ) { + total += $2 +} +END { + # result in blocks already + print total +}' ) fi fi # echo ss: $swap_size