mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
Trivial update
This commit is contained in:
parent
ecfa0d87a4
commit
37728af43f
22
inxi
22
inxi
|
@ -7339,17 +7339,17 @@ get_hdd_data_basic()
|
||||||
fi
|
fi
|
||||||
if swapctl -l -k &>/dev/null;then
|
if swapctl -l -k &>/dev/null;then
|
||||||
swap_size=$( swapctl -l -k 2>/dev/null | gawk '
|
swap_size=$( swapctl -l -k 2>/dev/null | gawk '
|
||||||
BEGIN {
|
BEGIN {
|
||||||
swapSize=0
|
swapSize=0
|
||||||
total=0
|
total=0
|
||||||
}
|
}
|
||||||
( $1 ~ /^\/dev/ ) && ( $2 ~ /^[0-9]+$/ ) {
|
( $1 ~ /^\/dev/ ) && ( $2 ~ /^[0-9]+$/ ) {
|
||||||
total += $2
|
total += $2
|
||||||
}
|
}
|
||||||
END {
|
END {
|
||||||
# result in blocks already
|
# result in blocks already
|
||||||
print total
|
print total
|
||||||
}' )
|
}' )
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# echo ss: $swap_size
|
# echo ss: $swap_size
|
||||||
|
|
Loading…
Reference in a new issue