Permalink
Browse files

bug fix in the ExponentiallyDecayingHistogram. timestamps where ignored

  • Loading branch information...
1 parent 1a4b51c commit c0d6d34f684e11e40bce997a62cd6884f447c07e @mikedanese mikedanese committed Dec 31, 2013
@@ -12,6 +12,7 @@
public static void main(String[] args) throws Exception {
new TradeBotApplication().run(args);
}
+
@Override
public void initialize(Bootstrap<Configuration> bootstrap) { /* boring */ }
@@ -26,6 +27,5 @@ public void run(Configuration config, Environment env) throws Exception {
/* resources */
final TickerResource tickerResource = new TickerResource(tickerService);
env.addResource(tickerResource);
-
}
}
@@ -52,7 +52,7 @@ public void update(long value) {
public void update(long value, long timestamp) {
count.increment();
- reservoir.update(value);
+ reservoir.update(value, timestamp);
}
/**

0 comments on commit c0d6d34

Please sign in to comment.