mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-26 15:46:31 +00:00
fix bug pointed out in https://webarchive.jira.com/browse/ARI-3176?focusedCommentId=35314 - url-agnostic dedupe not reported in host report (and other reports)
This commit is contained in:
@@ -72,6 +72,9 @@ public class FetchStats implements Serializable, FetchStatusCodes, Reporter {
|
||||
|
||||
protected long lastSuccessTime;
|
||||
|
||||
/*
|
||||
* XXX redundancy with StatisticsTracker.onApplicationEvent() ... CrawledBytesHistotable.accumulate() code path
|
||||
*/
|
||||
public synchronized void tally(CrawlURI curi, Stage stage) {
|
||||
switch(stage) {
|
||||
case SCHEDULED:
|
||||
@@ -91,7 +94,10 @@ public class FetchStats implements Serializable, FetchStatusCodes, Reporter {
|
||||
if (curi.getFetchStatus() == HttpStatus.SC_NOT_MODIFIED) {
|
||||
notModifiedBytes += curi.getContentSize();
|
||||
notModifiedUrls++;
|
||||
} else if (IdenticalDigestDecideRule.hasIdenticalDigest(curi)){
|
||||
} else if (IdenticalDigestDecideRule.hasIdenticalDigest(curi)) {
|
||||
dupByHashBytes += curi.getContentSize();
|
||||
dupByHashUrls++;
|
||||
} else if (curi.getAnnotations().contains("warcRevisit:uriAgnosticDigest")) {
|
||||
dupByHashBytes += curi.getContentSize();
|
||||
dupByHashUrls++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user