aboutsummaryrefslogtreecommitdiff
path: root/example/intrusion_detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/intrusion_detection.c')
-rw-r--r--example/intrusion_detection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/intrusion_detection.c b/example/intrusion_detection.c
index cce25a8b8..7296c2d29 100644
--- a/example/intrusion_detection.c
+++ b/example/intrusion_detection.c
@@ -154,7 +154,7 @@ double Dos_goldeneye_score(struct ndpi_flow_info* flow){
}
double Dos_hulk_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
+ double f = (double)flow->first_seen_ms/1000.0, l = (double)flow->last_seen_ms/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* duration */
@@ -308,7 +308,7 @@ double Ftp_patator_score(struct ndpi_flow_info* flow){
}
double Hearthbleed_score(struct ndpi_flow_info* flow){
- double f = (double)flow->first_seen/1000.0, l = (double)flow->last_seen/1000.0;
+ double f = (double)flow->first_seen_ms/1000.0, l = (double)flow->last_seen_ms/1000.0;
int n_metrics = 6;
ndpi_norm_value* scores = malloc(n_metrics * sizeof(ndpi_norm_value));
/* iat_flow_max */