diff options
| author | 2026-03-08 03:31:12 +0800 | |
|---|---|---|
| committer | 2026-03-08 03:31:12 +0800 | |
| commit | 74584d2dee4f349b5b3535669fa304b95f0f6e52 (patch) | |
| tree | 8ce22050c4726eeaffa29f34074bf8f874c51c7c /format/pack/ingest/progress_step.go | |
| parent | receivepack: Add basic progress logging (diff) | |
| signature | No signature | |
format/pack/ingest: Add more progress
Diffstat (limited to 'format/pack/ingest/progress_step.go')
| -rw-r--r-- | format/pack/ingest/progress_step.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/format/pack/ingest/progress_step.go b/format/pack/ingest/progress_step.go new file mode 100644 index 00000000..cdfc2322 --- /dev/null +++ b/format/pack/ingest/progress_step.go @@ -0,0 +1,9 @@ +package ingest + +func progressStep(total uint32) uint32 { + if total <= 200 { + return 1 + } + + return total / 200 +} |
