diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 16:06:24 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 16:06:24 +0200 |
commit | 4fb418e670f6d6c5d117a68a2b0c73106b5d296d (patch) | |
tree | 2a6a6e2ad3eaac1508b9e456bee9501266366542 | |
parent | 97a1a7b547ae3d0f6611ec1c5159a5447759e6dc (diff) | |
download | refcat-4fb418e670f6d6c5d117a68a2b0c73106b5d296d.tar.gz refcat-4fb418e670f6d6c5d117a68a2b0c73106b5d296d.zip |
rename: duplicates are from matched refs
-rw-r--r-- | skate/zippy.go | 12 |
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. |