[jbosscache-commits] JBoss Cache SVN: r5273 - benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Jan 30 20:37:15 EST 2008


Author: manik.surtani at jboss.com
Date: 2008-01-30 20:37:14 -0500 (Wed, 30 Jan 2008)
New Revision: 5273

Modified:
   benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java
Log:
Deal with header rows in csv output

Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java	2008-01-31 01:31:23 UTC (rev 5272)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/reportgenerators/ChartGenerator.java	2008-01-31 01:37:14 UTC (rev 5273)
@@ -147,7 +147,14 @@
       strTokenizer.nextToken();
       strTokenizer.nextToken();
       String candidate = strTokenizer.nextToken();
-      return Double.parseDouble(candidate);
+      try
+      {
+         return Double.parseDouble(candidate);
+      }
+      catch (NumberFormatException nfe)
+      {
+         return -1;
+      }
    }
 
 }




More information about the jbosscache-commits mailing list