diff options
| author | 2026-03-08 17:58:37 +0800 | |
|---|---|---|
| committer | 2026-03-08 17:58:37 +0800 | |
| commit | cf02f2958c191bea02126faf8daf72a7aae76bd9 (patch) | |
| tree | c2f919f851de0af99aade51a5a523ae0af0fe421 /format/pack | |
| parent | format/pack/ingest: Call it writeProgressf (diff) | |
| signature | No signature | |
*: Fix lints v0.1.82
Diffstat (limited to 'format/pack')
| -rw-r--r-- | format/pack/ingest/idx_write.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/format/pack/ingest/idx_write.go b/format/pack/ingest/idx_write.go index 04ab3aa2..922213d6 100644 --- a/format/pack/ingest/idx_write.go +++ b/format/pack/ingest/idx_write.go @@ -171,11 +171,16 @@ func writeIdx(state *ingestState) error { offsetMeter.Stop("done") } + total, err := intconv.IntToUint64(largeOffsetCount) + if err != nil { + return err + } + largeOffsetMeter := progress.New(progress.Options{ Writer: state.opts.Progress, Flush: state.opts.ProgressFlush, Title: "writing index large offsets", - Total: uint64(largeOffsetCount), + Total: total, }) var largeOffsetDone uint64 |
