aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_classify.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-10-02 23:25:05 +0200
committerLuca Deri <deri@ntop.org>2019-10-02 23:25:05 +0200
commitc247a9d1919d84ba6f781e656e837baaa9cfc386 (patch)
treea519d18b0f22f704df104d9106e6b442142d5ad5 /src/lib/ndpi_classify.c
parent4fd7e5734a2c0e35a3de0ab17f016411589488da (diff)
Code cleanup
Diffstat (limited to 'src/lib/ndpi_classify.c')
-rw-r--r--src/lib/ndpi_classify.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ndpi_classify.c b/src/lib/ndpi_classify.c
index 5d68500dd..ad2aee32a 100644
--- a/src/lib/ndpi_classify.c
+++ b/src/lib/ndpi_classify.c
@@ -516,9 +516,7 @@ ndpi_classify (const unsigned short *pkt_len, const struct timeval *pkt_time,
features[i+8+MC_BINS_LEN*MC_BINS_LEN+MC_BINS_TIME*MC_BINS_TIME] = bd[i]/((float)(ob));
}
}
- }
- if (ob+ib > 100 && use_bd) {
score = ndpi_parameters_bd[0];
for (i = 1; i < NUM_PARAMETERS_BD_LOGREG; i++) {
score += features[i]*ndpi_parameters_bd[i];