Author: jerome Date: Sun Mar 12 01:42:44 2006 New Revision: 385268 URL: http://svn.apache.org/viewcvs?rev=385268&view=rev Log: Fix milliseconds dumped by cluster.jsp (Dawid Weiss)
Modified: lucene/nutch/trunk/src/web/jsp/cluster.jsp Modified: lucene/nutch/trunk/src/web/jsp/cluster.jsp URL: http://svn.apache.org/viewcvs/lucene/nutch/trunk/src/web/jsp/cluster.jsp?rev=385268&r1=385267&r2=385268&view=diff ============================================================================== --- lucene/nutch/trunk/src/web/jsp/cluster.jsp (original) +++ lucene/nutch/trunk/src/web/jsp/cluster.jsp Sun Mar 12 01:42:44 2006 @@ -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) }