Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix milliseconds dumped by cluster.jsp (Dawid Weiss)

Jerome Charronf7d46b34c942
diff --git a/src/web/jsp/cluster.jsp b/src/web/jsp/cluster.jsp
index a435bd9b8..b7d265cd0 100644
--- a/src/web/jsp/cluster.jsp
+++ b/src/web/jsp/cluster.jsp
@@ -21,11 +21,11 @@
// cluster the hits
HitsCluster [] clusters = null;
if (clusterer != null) {
- long clusteringStart = System.currentTimeMillis();
+ final long clusteringStart = System.currentTimeMillis();
try {
clusters = clusterer.clusterHits( details, summaries );
- long clusteringDuration = start - System.currentTimeMillis();
- bean.LOG.info("Clustering took: " + clusteringDuration + " milliseconds.");
+ final long clusteringDuration = System.currentTimeMillis() - clusteringStart;
+ bean.LOG.info("Clustering took: " + clusteringDuration + " milliseconds.");
} catch (Exception e) {
// failed to do clustering (see below)
}