diff --git a/src/main/java/edu/vt/rhids/main/Classifier.java b/src/main/java/edu/vt/rhids/main/Classifier.java index 2ba4773..a3735d2 100644 --- a/src/main/java/edu/vt/rhids/main/Classifier.java +++ b/src/main/java/edu/vt/rhids/main/Classifier.java @@ -155,7 +155,7 @@ public void test() throws IOException Logger.signal("ANOMALOUS EPOCH", Verbosity.MEDIUM); } - if (nMismatches > stats.getTestThreshold()) + if ((float) nMismatches / stats.getEpochSize() > stats.getTestThreshold() / 100.0f) { Logger.signal("Anomaly signal raised", Verbosity.MEDIUM); stats.incrementAlarms(isAnomalousEpoch);