formatLagBytesValue() — supabase Function Reference
Architecture documentation for the formatLagBytesValue() function in ReplicationPipelineStatus.utils.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 8a73eadd_ef26_2aa3_e598_e1f5cf7ea455["formatLagBytesValue()"] 7e53bba0_159c_a8c5_bd18_a1d72665e775["getFormattedLagValue()"] 7e53bba0_159c_a8c5_bd18_a1d72665e775 -->|calls| 8a73eadd_ef26_2aa3_e598_e1f5cf7ea455 style 8a73eadd_ef26_2aa3_e598_e1f5cf7ea455 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.utils.tsx lines 137–147
const formatLagBytesValue = (value?: number) => {
if (typeof value !== 'number' || Number.isNaN(value)) {
return { display: '—', detail: undefined }
}
const decimals = value < 1024 ? 0 : value < 1024 * 1024 ? 1 : 2
const display = formatBytes(value, decimals)
const detail = `${numberFormatter.format(value)} bytes`
return { display, detail }
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does formatLagBytesValue() do?
formatLagBytesValue() is a function in the supabase codebase.
What calls formatLagBytesValue()?
formatLagBytesValue() is called by 1 function(s): getFormattedLagValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free