From 92338d4ad6bd59fdf551817ae83e7399ec2ef905 Mon Sep 17 00:00:00 2001 From: yoloyyh <1764163852@qq.com> Date: Wed, 9 Oct 2024 11:40:40 +0800 Subject: [PATCH] modify discard_count to discard_send --- .../src/main/java/com/security/smith/SmithProbe.java | 4 ++-- .../com/security/smith/client/message/Heartbeat.java | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java index 6ec12b19f..dfc6905e9 100644 --- a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java +++ b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java @@ -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, Integer> getLimits() { diff --git a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/client/message/Heartbeat.java b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/client/message/Heartbeat.java index 2b41c4aec..ef3a61206 100644 --- a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/client/message/Heartbeat.java +++ b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/client/message/Heartbeat.java @@ -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 = ""; @@ -21,7 +21,7 @@ public Heartbeat() { patch = ""; class_filter_version = ""; switches = ""; - discard_count = 0; + discard_send = 0; } public String getFilter() { @@ -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) {