manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1677493 - in /manifoldcf/branches/dev_1x: CHANGES.txt framework/crawler-ui/src/main/webapp/maxbandwidthreport.jsp
Date Sun, 03 May 2015 22:49:57 GMT
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")+"\""%>>



Mime
View raw message