total node size

This commit is contained in:
goldsquid
2026-02-07 22:29:01 +07:00
parent 0031e43550
commit 4ae053438c

View File

@@ -43,11 +43,16 @@ for part in "${parts[@]}"; do
#output=$(echo "$((total_kb * 1024))" | numfmt --to=iec --suffix=B --format="%.2f")
#echo "$output"
static_part=$(echo "$total_kb * $static_ratio" | bc)
static_part=$(echo "$total_kb * $static_ratio" | bc)
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