Output data only if client
This commit is contained in:
parent
d0b17aab1b
commit
1e58805b54
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ int on_receive_measure_packet_err(struct evt_core_ctx* ctx, struct evt_core_fdin
|
|||
sprintf(url, "timer:%d", fdinfo->fd);
|
||||
struct evt_core_fdinfo* assoc_timer = evt_core_get_from_url (ctx, url);
|
||||
if (assoc_timer != NULL) {
|
||||
measure_summary (&mctx->mp, assoc_timer->other);
|
||||
if (mctx->role == MEASLAT_CLIENT) measure_summary (&mctx->mp, assoc_timer->other);
|
||||
evt_core_rm_fd (ctx, assoc_timer->fd);
|
||||
printf("Deleted associated timer %s\n", url);
|
||||
} else {
|
||||
|
@ -111,7 +111,7 @@ void measlat_stop(
|
|||
if (ms->mp_in->counter < mctx->mp.max_measure) return;
|
||||
if (ms->mp_out->counter < mctx->mp.max_measure) return;
|
||||
printf("[states] measurement %d+%d terminated\n", net_fd, timer_fd);
|
||||
measure_summary (&(mctx->mp), ms);
|
||||
if (mctx->role == MEASLAT_CLIENT) measure_summary (&(mctx->mp), ms);
|
||||
evt_core_rm_fd(ctx, timer_fd);
|
||||
if (!(mctx->connectionless && mctx->role == MEASLAT_SERVER))
|
||||
evt_core_rm_fd(ctx, net_fd);
|
||||
|
|
Loading…
Reference in a new issue