MCPcopy Index your code
hub / github.com/simstudioai/sim / formatGb

Function formatGb

apps/sim/lib/billing/storage/tracking.ts:20–22  ·  view source on GitHub ↗

Format bytes as a `GB` label for usage-limit emails (2dp usage, whole-number limit).

(bytes: number, decimals: number)

Source from the content-addressed store, hash-verified

18
19/** Format bytes as a `GB` label for usage-limit emails (2dp usage, whole-number limit). */
20function formatGb(bytes: number, decimals: number): string {
21 return `${(bytes / 1024 ** 3).toFixed(decimals)} GB`
22}
23
24/**
25 * Best-effort storage threshold evaluation after a usage change. Re-reads the

Callers 1

maybeNotifyStorageLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected