From 219278b31f8ad96eb75e8eed26107b9404e6f0eb Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 5 Jun 2015 12:30:27 +0200 Subject: [PATCH] also measure delay distribution for dropped packets --- server/src/path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/path.c b/server/src/path.c index ff5121b2c..4c7ff3f82 100644 --- a/server/src/path.c +++ b/server/src/path.c @@ -103,6 +103,10 @@ skip: for(;;) { /* Update sequence histogram */ hist_put(&p->hist_seq, dist); + + /* Update delay histogram */ + struct timespec sent = MSG_TS(p->current); + hist_put(&p->hist_delay, time_delta(&sent, &now)); /* Handle simulation restart */ if (p->current->sequence == 0 && abs(dist) >= 1) { @@ -117,10 +121,6 @@ skip: for(;;) { p->dropped++; goto skip; } - - /* Update delay histogram */ - struct timespec sent = MSG_TS(p->current); - hist_put(&p->hist_delay, time_delta(&sent, &now)); } /* Call hook callbacks */