diff options
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 +} |
