MCPcopy Index your code
hub / github.com/callstack/agent-device / uploadProgressStepBytes

Function uploadProgressStepBytes

src/upload-progress.ts:87–92  ·  view source on GitHub ↗
(totalBytes: number)

Source from the content-addressed store, hash-verified

85}
86
87function uploadProgressStepBytes(totalBytes: number): number {
88 return Math.max(
89 DEFAULT_UPLOAD_PROGRESS_STEP_BYTES,
90 Math.ceil(totalBytes * DEFAULT_UPLOAD_PROGRESS_STEP_RATIO),
91 );
92}
93
94function formatStage(stage: UploadProgressStage): string {
95 return stage === 'direct' ? 'direct' : 'legacy';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected