diff options
Diffstat (limited to 'src/matcher.go')
| -rw-r--r-- | src/matcher.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/matcher.go b/src/matcher.go index 3c5dec09..69250873 100644 --- a/src/matcher.go +++ b/src/matcher.go @@ -207,13 +207,13 @@ func (m *Matcher) scan(request MatchRequest) (*Merger, bool) { return nil, wait() } - if time.Now().Sub(startedAt) > progressMinDuration { + if time.Since(startedAt) > progressMinDuration { m.eventBox.Set(EvtSearchProgress, float32(count)/float32(numChunks)) } } partialResults := make([][]Result, numSlices) - for _ = range slices { + for range slices { partialResult := <-resultChan partialResults[partialResult.index] = partialResult.matches } |
