mirror of https://github.com/apache/activemq.git
fix up cancelledTaskModMetric reporting in kahadb
This commit is contained in:
parent
e52a052761
commit
b37b9eb5af
|
@ -1413,7 +1413,7 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
|
|||
this.store.addMessage(context, message);
|
||||
removeQueueTask(this.store, this.message.getMessageId());
|
||||
this.future.complete();
|
||||
} else if (cancelledTaskModMetric > 0 && this.store.canceledTasks++ % cancelledTaskModMetric == 0) {
|
||||
} else if (cancelledTaskModMetric > 0 && (++this.store.canceledTasks) % cancelledTaskModMetric == 0) {
|
||||
System.err.println(this.store.dest.getName() + " cancelled: "
|
||||
+ (this.store.canceledTasks / this.store.doneTasks) * 100);
|
||||
this.store.canceledTasks = this.store.doneTasks = 0;
|
||||
|
|
Loading…
Reference in New Issue