aboutsummaryrefslogtreecommitdiff
path: root/src/nse/nse_api.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-12-07 17:45:07 +0000
committerBart Polot <bart@net.in.tum.de>2011-12-07 17:45:07 +0000
commitac19bc1a1274309192b4fde2d5dcc10a4714509f (patch)
tree88bbde203846b9e138ae1135d916bfcc25fce386 /src/nse/nse_api.c
parent120aa8991b21da50477386413911afe1f5dfcc19 (diff)
downloadgnunet-ac19bc1a1274309192b4fde2d5dcc10a4714509f.tar.gz
gnunet-ac19bc1a1274309192b4fde2d5dcc10a4714509f.zip
- revert 18495
Diffstat (limited to 'src/nse/nse_api.c')
-rw-r--r--src/nse/nse_api.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c
index ea1aae9e4..db5e9d117 100644
--- a/src/nse/nse_api.c
+++ b/src/nse/nse_api.c
@@ -102,7 +102,6 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg)
102{ 102{
103 struct GNUNET_NSE_Handle *h = cls; 103 struct GNUNET_NSE_Handle *h = cls;
104 const struct GNUNET_NSE_ClientMessage *client_msg; 104 const struct GNUNET_NSE_ClientMessage *client_msg;
105 double std_dev;
106 105
107 if (msg == NULL) 106 if (msg == NULL)
108 { 107 {
@@ -120,12 +119,8 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg)
120 return; 119 return;
121 } 120 }
122 client_msg = (const struct GNUNET_NSE_ClientMessage *) msg; 121 client_msg = (const struct GNUNET_NSE_ClientMessage *) msg;
123 if (isnormal (client_msg->std_deviation))
124 std_dev = client_msg->std_deviation;
125 else
126 std_dev = 0.0;
127 h->recv_cb (h->recv_cb_cls, GNUNET_TIME_absolute_ntoh (client_msg->timestamp), 122 h->recv_cb (h->recv_cb_cls, GNUNET_TIME_absolute_ntoh (client_msg->timestamp),
128 client_msg->size_estimate, std_dev); 123 client_msg->size_estimate, client_msg->std_deviation);
129 GNUNET_CLIENT_receive (h->client, &message_handler, h, 124 GNUNET_CLIENT_receive (h->client, &message_handler, h,
130 GNUNET_TIME_UNIT_FOREVER_REL); 125 GNUNET_TIME_UNIT_FOREVER_REL);
131} 126}