1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

also measure delay distribution for dropped packets

This commit is contained in:
Steffen Vogel 2015-06-05 12:30:27 +02:00
parent bacba17c5c
commit 219278b31f

View file

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