activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r420551 - /incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/reports/plugins/CpuReportPlugin.java
Date Mon, 10 Jul 2006 14:53:52 GMT
Author: aco
Date: Mon Jul 10 07:53:51 2006
New Revision: 420551

URL: http://svn.apache.org/viewvc?rev=420551&view=rev
Log:
- Add to ignore list and minor bug fix in checking of ignore list

Modified:
    incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/reports/plugins/CpuReportPlugin.java

Modified: incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/reports/plugins/CpuReportPlugin.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/reports/plugins/CpuReportPlugin.java?rev=420551&r1=420550&r2=420551&view=diff
==============================================================================
--- incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/reports/plugins/CpuReportPlugin.java
(original)
+++ incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/reports/plugins/CpuReportPlugin.java
Mon Jul 10 07:53:51 2006
@@ -29,7 +29,7 @@
 public class CpuReportPlugin implements ReportPlugin {
     private static final Log log = LogFactory.getLog(CpuReportPlugin.class);
 
-    public static final String NAME_IGNORE_LIST = "$r$b$w$swpd$inact$active$free$buff$cache$si$so$in$";
+    public static final String NAME_IGNORE_LIST = "$index$timeUnit$r$b$w$swpd$inact$active$free$buff$cache$si$so$in$";
     public static final String NAME_BLOCK_RECV = "bi";
     public static final String NAME_BLOCK_SENT = "bo";
     public static final String NAME_CTX_SWITCH = "cs";
@@ -143,7 +143,7 @@
             idleTime.add(Long.valueOf(val));
         } else if (key.equals(NAME_WAIT_TIME)) {
             waitTime.add(Long.valueOf(val));
-        } else if (NAME_IGNORE_LIST.indexOf("$" + key + "$") > 0) {
+        } else if (NAME_IGNORE_LIST.indexOf("$" + key + "$") != -1) {
             // Ignore key
         } else {
             log.warn("Unrecognized CPU data. " + key + "=" + val);



Mime
View raw message