Fix stats reporting. Add Vite compatibility

This commit is contained in:
2025-11-04 16:16:50 +01:00
parent aa29de9029
commit e54dc2dbd7
21 changed files with 1060 additions and 361 deletions

View File

@@ -13,6 +13,10 @@ export const formatThousands = (amt: number) => {
}
export const formatDataVolume = (amt: number, precision: number) => {
if (amt === undefined) {
return ""
}
if (precision < 3) { precision = 3; }
if (amt >= 1e18 - 1e15) {
return (amt / 1e18).toPrecision(precision) + " EB";