Skip to content

Commit

Permalink
TP.msg_stats.enabled=false is not honored by all counters
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Aug 30, 2024
1 parent 776646e commit 5e30b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/jgroups/protocols/MsgStats.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public class MsgStats {
public long getNumMcastsReceived() {return num_mcasts_received.sum();}

public long getNumSingleMsgsSent() {return num_single_msgs_sent.sum();}
public MsgStats incrNumSingleMsgsSent() {num_single_msgs_sent.increment(); return this;}
public MsgStats incrNumSingleMsgsSent() {if(enabled) num_single_msgs_sent.increment(); return this;}

public long getNumBatchesSent() {return num_batches_sent.sum();}
public MsgStats incrNumBatchesSent() {num_batches_sent.increment(); return this;}
public MsgStats incrNumBatchesSent(int n) {num_batches_sent.add(n); return this;}
public MsgStats incrNumBatchesSent() {if(enabled) num_batches_sent.increment(); return this;}
public MsgStats incrNumBatchesSent(int n) {if(enabled) num_batches_sent.add(n); return this;}

public long getNumBatchesReceived() {return num_batches_received.sum();}

Expand Down

0 comments on commit 5e30b53

Please sign in to comment.