From a45670c7be283300e3a6906462a1a6a07a420694 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 27 Jul 2011 14:52:42 +0000 Subject: [PATCH] timestamp fix --- src/include/gnunet_nse_service.h | 2 +- src/nse/nse-profiler.c | 4 ++-- src/nse/nse_api.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/gnunet_nse_service.h b/src/include/gnunet_nse_service.h index 2c5e2c750..dca2e105f 100644 --- a/src/include/gnunet_nse_service.h +++ b/src/include/gnunet_nse_service.h @@ -62,7 +62,7 @@ struct GNUNET_NSE_Handle; * */ typedef void (*GNUNET_NSE_Callback) (void *cls, - struct GNUNET_TIME_AbsoluteNBO timestamp, + struct GNUNET_TIME_Absolute timestamp, double logestimate, double std_dev); diff --git a/src/nse/nse-profiler.c b/src/nse/nse-profiler.c index e1c64d442..fe3261b85 100644 --- a/src/nse/nse-profiler.c +++ b/src/nse/nse-profiler.c @@ -204,7 +204,7 @@ shutdown_task (void *cls, * */ static void -handle_estimate (void *cls, struct GNUNET_TIME_AbsoluteNBO timestamp, double estimate, double std_dev) +handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp, double estimate, double std_dev) { struct NSEPeer *peer = cls; char *output_buffer; @@ -216,7 +216,7 @@ handle_estimate (void *cls, struct GNUNET_TIME_AbsoluteNBO timestamp, double est "%s %u %llu %f %f %f\n", GNUNET_i2s(&peer->daemon->id), peers_running, - GNUNET_TIME_absolute_ntoh(timestamp).abs_value, + timestamp.abs_value, pow(2, estimate), estimate, std_dev); diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c index c986b7ff4..3be140c01 100644 --- a/src/nse/nse_api.c +++ b/src/nse/nse_api.c @@ -122,7 +122,7 @@ message_handler (void *cls, } client_msg = (const struct GNUNET_NSE_ClientMessage *)msg; h->recv_cb (h->recv_cb_cls, - client_msg->timestamp, + GNUNET_TIME_absolute_ntoh(client_msg->timestamp), client_msg->size_estimate, client_msg->std_deviation); GNUNET_CLIENT_receive (h->client, -- 2.25.1