From: Bart Polot Date: Mon, 15 Dec 2014 07:18:07 +0000 (+0000) Subject: - use proper wait time for core timing X-Git-Tag: initial-import-from-subversion-38251~2904 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3314d45a2d54f073a9d22b219069ede2633cdb69;p=oweals%2Fgnunet.git - use proper wait time for core timing --- diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 3711fff82..bad81ed7f 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c @@ -1189,15 +1189,15 @@ GCP_queue_destroy (struct CadetPeerQueue *queue, int clear_cls, if (NULL != queue->callback) { - struct GNUNET_TIME_Relative core_wait_time; + struct GNUNET_TIME_Relative wait_time; - core_wait_time = GNUNET_TIME_absolute_get_duration (peer->tmt_time); + wait_time = GNUNET_TIME_absolute_get_duration (queue->start_waiting); LOG (GNUNET_ERROR_TYPE_DEBUG, " calling callback, time elapsed %s\n", - GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); + GNUNET_STRINGS_relative_time_to_string (wait_time, GNUNET_NO)); connection_destroyed = queue->callback (queue->callback_cls, queue->c, sent, queue->type, pid, queue->fwd, queue->size, - core_wait_time); + wait_time); } else {