Skip to content

Commit cd3d78c

Browse files
authored
Add data size to thread details (#114)
This changeset makes the worker threads table’s “Detail” column show: > 20,000 documents (2.34 GiB) … rather than just “read 20,000 documents”. This will (slightly) better indicate that thread’s progress.
1 parent 5bf4ecd commit cd3d78c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/verifier/compare.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ func (verifier *Verifier) compareDocsFromChannels(
204204
verifier.workerTracker.SetDetail(
205205
workerNum,
206206
fmt.Sprintf(
207-
"read %s documents",
207+
"%s documents (%s)",
208208
reportutils.FmtReal(srcDocCount),
209+
reportutils.FmtBytes(srcByteCount),
209210
),
210211
)
211212
}

0 commit comments

Comments
 (0)