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

Function gbToBytes

apps/sim/lib/billing/storage/limits.ts:33–35  ·  view source on GitHub ↗

* Convert GB to bytes

(gb: number)

Source from the content-addressed store, hash-verified

31 * Convert GB to bytes
32 */
33function gbToBytes(gb: number): number {
34 return gb * 1024 * 1024 * 1024
35}
36
37/**
38 * Get storage limits from environment variables with fallback to constants

Callers 2

getStorageLimitsFunction · 0.85
getStorageLimitForPlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected