aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skate/zippy.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/skate/zippy.go b/skate/zippy.go
index d71d57e..54038c0 100644
--- a/skate/zippy.go
+++ b/skate/zippy.go
@@ -372,9 +372,9 @@ func matchedRefsExtend(matched []*BiblioRef, refs []*Ref, stats *statsAugment) [
}
for _, r := range refs {
if s.Contains(r.Key + fmt.Sprintf("%d", r.Index)) {
- stats.skipDuplicatedRef++
- log.Printf("skip-dup-ref [%d]: re=%v, title=%s, key=%v, index=%v",
- stats.skipDuplicatedRef, r.ReleaseIdent, r.Biblio.Title, r.Key, fmt.Sprintf("%d", r.Index))
+ stats.skipMatchedRef++
+ log.Printf("skip-matched-ref [%d]: from %d matches; ident=%v, title=%s, key=%v, index=%v",
+ stats.skipMatchedRef, len(matched), r.ReleaseIdent, r.Biblio.Title, r.Key, fmt.Sprintf("%d", r.Index))
continue
}
var bref BiblioRef
@@ -428,13 +428,13 @@ func uniqueMatches(docs []string, stats *statsAugment) (result []*BiblioRef, err
type statsAugment struct {
skipDuplicatedBref int64
- skipDuplicatedRef int64
+ skipMatchedRef int64
total int64
}
func (s statsAugment) String() string {
- return fmt.Sprintf("total=%d, skipDuplicatedRef=%d, skipDuplicatedBref=%d",
- s.total, s.skipDuplicatedRef, s.skipDuplicatedBref)
+ return fmt.Sprintf("total=%d, skipMatchedRef=%d, skipDuplicatedBref=%d",
+ s.total, s.skipMatchedRef, s.skipDuplicatedBref)
}
// CutBatch runs Cut over a list of lines.