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:
parent
bacba17c5c
commit
219278b31f
1 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue