You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by ki...@apache.org on 2015/05/04 00:49:57 UTC

svn commit: r1677493 - in /manifoldcf/branches/dev_1x: CHANGES.txt framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp

Author: kishore
Date: Sun May  3 22:49:57 2015
New Revision: 1677493

URL: http://svn.apache.org/r1677493
Log:
Pull up fix for CONNECTORS-1195 from trunk.

Modified:
    manifoldcf/branches/dev_1x/CHANGES.txt
    manifoldcf/branches/dev_1x/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp

Modified: manifoldcf/branches/dev_1x/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/branches/dev_1x/CHANGES.txt?rev=1677493&r1=1677492&r2=1677493&view=diff
==============================================================================
--- manifoldcf/branches/dev_1x/CHANGES.txt (original)
+++ manifoldcf/branches/dev_1x/CHANGES.txt Sun May  3 22:49:57 2015
@@ -3,6 +3,9 @@ $Id$
 
 ======================= 1.10-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/branches/dev_1x/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/dev_1x/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp?rev=1677493&r1=1677492&r2=1677493&view=diff
==============================================================================
--- manifoldcf/branches/dev_1x/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp (original)
+++ manifoldcf/branches/dev_1x/framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp Sun May  3 22:49:57 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")+"\""%>>