This commit is contained in:
Wes committed 2023-05-30 18:24:30 +00:00
1 parent 096dadf9bd
commit 4469a93a75
1 file changed
+1 -1
@@ -21,7 +21,7 @@ for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $2}');
size=$(echo $i | grep -oE '[0-9].*' | awk '{print int($1+0.5)}')
unit=$(echo $i | grep -oE '[A-Za-z]+')
if [ $unit = "tb" ]; then
size=$(( size * 1000 * 1000 * 1000 * 1000<F12> ))
size=$(( size * 1000 * 1000 * 1000 * 1000 ))
elif [ $unit = "gb" ]; then
size=$(( size * 1000 * 1000 * 1000 ))
elif [ $unit = "mb" ]; then