Add comment

This commit is contained in:
David Boreham 2022-08-31 07:54:16 -06:00
parent d235f3b84c
commit 7f8885f044

View File

@ -133,6 +133,7 @@ func (sds *Service) Run(rngs []RangeRequest, parallel bool) error {
wg := new(sync.WaitGroup)
for i := 0; i < int(sds.workers); i++ {
blockRange := RangeRequest{
// TODO(dboreham): check this math doesn't leave gaps (are start/stop inclusive?)
Start: preRun.Start + uint64(i)*chunkSize,
Stop: preRun.Start + uint64(i)*chunkSize + chunkSize - 1,
Params: preRun.Params,