Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify discard_count to discard_send #693

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading