Author: kishore
Date: Sun May 3 22:15:45 2015
New Revision: 1677491
URL: http://svn.apache.org/r1677491
Log:
Fix to CONNECTORS-1195.
Modified:
manifoldcf/trunk/CHANGES.txt
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
Modified: manifoldcf/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1677491&r1=1677490&r2=1677491&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Sun May 3 22:15:45 2015
@@ -3,6 +3,9 @@ $Id$
======================= 2.2-dev =====================
+CONNECTORS-1195: Fix for NumberFormatException exception thrown in Maximum
Bandwidth Report
+(Kishore Kumar)
+
CONNECTORS-1192: Fix a problem with login-page detection based on
content. Last line was getting skipped, and infinite amounts of content
could be buffered in memory. Adopted a compromise that scans an
Modified:
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp?rev=1677491&r1=1677490&r2=1677491&view=diff
==============================================================================
---
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
(original)
+++
manifoldcf/trunk/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
Sun May 3 22:15:45 2015
@@ -751,8 +751,8 @@ if (maintenanceUnderway == false)
idBucketString = idBucketObject.toString();
String startTimeString =
org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("starttime")));
String endTimeString =
org.apache.manifoldcf.ui.util.Formatter.formatTime(Converter.asLong(row.getValue("endtime").toString()));
- long byteCount =
Converter.asLong(row.getValue("bytecount"));
- double bandwidth = ((double)byteCount) * 1000.0 /
intervalMilliseconds;
+ double byteCount =
Converter.asDouble(row.getValue("bytecount"));
+ double bandwidth = byteCount * 1000.0 /
intervalMilliseconds;
%>
<tr
<%="class=\""+((zz%2==0)?"evendatarow":"odddatarow")+"\""%>>