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 */