sirona-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1542326 - /incubator/sirona/trunk/core/src/main/java/org/apache/sirona/gauges/counter/CounterGauge.java
Date Fri, 15 Nov 2013 17:00:33 GMT
Author: rmannibucau
Date: Fri Nov 15 17:00:33 2013
New Revision: 1542326

URL: http://svn.apache.org/r1542326
Log:
prefixing counter gauge by counter-

Modified:
    incubator/sirona/trunk/core/src/main/java/org/apache/sirona/gauges/counter/CounterGauge.java

Modified: incubator/sirona/trunk/core/src/main/java/org/apache/sirona/gauges/counter/CounterGauge.java
URL: http://svn.apache.org/viewvc/incubator/sirona/trunk/core/src/main/java/org/apache/sirona/gauges/counter/CounterGauge.java?rev=1542326&r1=1542325&r2=1542326&view=diff
==============================================================================
--- incubator/sirona/trunk/core/src/main/java/org/apache/sirona/gauges/counter/CounterGauge.java
(original)
+++ incubator/sirona/trunk/core/src/main/java/org/apache/sirona/gauges/counter/CounterGauge.java
Fri Nov 15 17:00:33 2013
@@ -37,7 +37,7 @@ public class CounterGauge implements Gau
         this.counter = counter;
         this.metric = metric;
         this.reset = reset;
-        this.role = new Role(counter.getKey().getRole().getName() + "-" + counter.getKey().getName()
+ "-" + metric.name(), Unit.UNARY);
+        this.role = new Role("counter-" + counter.getKey().getRole().getName() + "-" + counter.getKey().getName()
+ "-" + metric.name(), Unit.UNARY);
     }
 
     @Override



Mime
View raw message