Skip to content

Commit

Permalink
modify discard_count to discard_send
Browse files Browse the repository at this point in the history
  • Loading branch information
yoloyyh committed Oct 9, 2024
1 parent ef6ae54 commit 92338d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1316,9 +1316,9 @@ public Heartbeat getHeartbeat() {
}

public void addDisacrdCount() {
int discrad_count = this.heartbeat.getDiscardCount();
int discrad_count = this.heartbeat.getDiscardSend();
discrad_count++;
this.heartbeat.setDiscardCount(discrad_count);
this.heartbeat.setDiscardSend(discrad_count);
}

public Map<Pair<Integer, Integer>, Integer> getLimits() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Heartbeat {
private String patch;
private String class_filter_version;
private String switches;
private int discard_count;
private int discard_send;

public Heartbeat() {
filter = "";
Expand All @@ -21,7 +21,7 @@ public Heartbeat() {
patch = "";
class_filter_version = "";
switches = "";
discard_count = 0;
discard_send = 0;
}

public String getFilter() {
Expand Down Expand Up @@ -72,12 +72,12 @@ public void setSwitches(String switches) {
this.switches = switches;
}

public synchronized int getDiscardCount() {
return discard_count;
public synchronized int getDiscardSend() {
return discard_send;
}

public synchronized void setDiscardCount(int discard_count) {
this.discard_count = discard_count;
public synchronized void setDiscardSend(int discard_send) {
this.discard_send = discard_send;
}

public static Heartbeat fromJson(String json) {
Expand Down

0 comments on commit 92338d4

Please sign in to comment.