total node size
This commit is contained in:
@@ -48,6 +48,11 @@ for part in "${parts[@]}"; do
|
||||
static_size=$(echo "$static_size + $static_part" | bc)
|
||||
#output=$(echo "$static_size" | numfmt --to=iec --suffix=B --format="%.2f")
|
||||
#echo "$output"
|
||||
# When called without parameters, show total chaindata per node
|
||||
if [ $# -eq 0 ]; then
|
||||
node_total=$(echo "$(( total_kb * 1024 ))" | numfmt --to=iec --suffix=B --format="%.2f")
|
||||
echo " Total chaindata: $node_total" >&2
|
||||
fi
|
||||
echo "" >&2
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user