Skip to content

Commit

Permalink
latency fix: only set last-visit time if access was actually by the
Browse files Browse the repository at this point in the history
robot
  • Loading branch information
Orbiter committed Dec 7, 2012
1 parent 118233a commit dd241d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/crawler/retrieval/HTTPLoader.java
Expand Up @@ -74,7 +74,7 @@ public HTTPLoader(final Switchboard sb, final Log theLog) {
public Response load(final Request entry, final int maxFileSize, final BlacklistType blacklistType) throws IOException {
final long start = System.currentTimeMillis();
final Response doc = load(entry, DEFAULT_CRAWLING_RETRY_COUNT, maxFileSize, blacklistType);
Latency.updateAfterLoad(entry.url(), System.currentTimeMillis() - start);
if (!doc.fromCache()) Latency.updateAfterLoad(entry.url(), System.currentTimeMillis() - start);
return doc;
}

Expand Down

0 comments on commit dd241d0

Please sign in to comment.