Fix stats reporting. Add Vite compatibility
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user