activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1162138 - /activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
Date Fri, 26 Aug 2011 15:18:17 GMT
Author: chirino
Date: Fri Aug 26 15:18:17 2011
New Revision: 1162138

URL: http://svn.apache.org/viewvc?rev=1162138&view=rev
Log:
Fixes https://issues.apache.org/jira/browse/APLO-77 : was not indexing into the right fields.

Modified:
    activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala

Modified: activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala?rev=1162138&r1=1162137&r2=1162138&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
Fri Aug 26 15:18:17 2011
@@ -743,7 +743,7 @@ case class BrokerResource() extends Reso
     for( row <- rs.rows ) {
       val info = row.asInstanceOf[java.util.List[_]]
       def read(index:Int) = try {
-        info.get(0).asInstanceOf[java.lang.Number].longValue()
+        info.get(index).asInstanceOf[java.lang.Number].longValue()
       } catch {
         case e:Throwable => 0L
       }



Mime
View raw message