}
warc.WARCsM.RLock()
for warcPath, uris := range warc.WARCs {
- fmt.Fprintf(fd, "%s\t%d\n", warcPath, len(uris))
+ fmt.Fprintf(
+ fd, "%s\t%d\t%d\n",
+ warcPath, len(uris), len(warc.WARCs[warcPath]),
+ )
}
warc.WARCsM.RUnlock()
fd.Close()
log.Printf("%s: can not open %s: %+v\n", p, warcPath, err)
break
}
- log.Printf("%s: %s: added %d URIs\n", p, warcPath, len(warc.WARCs[warcPath]))
+ log.Printf(
+ "%s: %s: added %d URIs %d segments\n",
+ p, warcPath,
+ len(warc.WARCs[warcPath]),
+ len(warc.WARCsOffsets[warcPath]),
+ )
}
}
}