aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-06-24 14:25:10 +0000
committerBart Polot <bart@net.in.tum.de>2015-06-24 14:25:10 +0000
commitff80f7da5dd7a9e6971a4dddbd98db9aff70383e (patch)
treea28b2c00b3be2d939a31a289716fe422d8e74918
parent8694e7b799bb2ef02ade6c4705da7193d22f26f6 (diff)
downloadgnunet-ff80f7da5dd7a9e6971a4dddbd98db9aff70383e.tar.gz
gnunet-ff80f7da5dd7a9e6971a4dddbd98db9aff70383e.zip
- fix
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index d7ff6e71a..d1707a40e 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -1150,7 +1150,7 @@ queue_send (void *cls, size_t size, void *buf)
1150 /* Sanity checking */ 1150 /* Sanity checking */
1151 if (NULL == buf || 0 == size) 1151 if (NULL == buf || 0 == size)
1152 { 1152 {
1153 GNUNET_break (); 1153 GNUNET_break (0);
1154 LOG (GNUNET_ERROR_TYPE_WARNING, "CORE gave buffer size 0.\n"); 1154 LOG (GNUNET_ERROR_TYPE_WARNING, "CORE gave buffer size 0.\n");
1155 peer->tmt_time.abs_value_us = 0; 1155 peer->tmt_time.abs_value_us = 0;
1156 peer->core_transmit = NULL; 1156 peer->core_transmit = NULL;
@@ -1172,11 +1172,15 @@ queue_send (void *cls, size_t size, void *buf)
1172 } 1172 }
1173 core_wait_time = GNUNET_TIME_absolute_get_duration (peer->tmt_time); 1173 core_wait_time = GNUNET_TIME_absolute_get_duration (peer->tmt_time);
1174 if (core_wait_time.rel_value_us >= 1000000) 1174 if (core_wait_time.rel_value_us >= 1000000)
1175 LOG (GNUNET_ERROR_TYPE_ERROR, " core wait time %s > 1 second\n", 1175 {
1176 LOG (GNUNET_ERROR_TYPE_ERROR, " core wait time %s \n",
1176 GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); 1177 GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO));
1178 }
1177 else 1179 else
1180 {
1178 LOG (GNUNET_ERROR_TYPE_DEBUG, " core wait time %s\n", 1181 LOG (GNUNET_ERROR_TYPE_DEBUG, " core wait time %s\n",
1179 GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO)); 1182 GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO));
1183 }
1180 peer->tmt_time.abs_value_us = 0; 1184 peer->tmt_time.abs_value_us = 0;
1181 1185
1182 /* Copy all possible messages to the core buffer */ 1186 /* Copy all possible messages to the core buffer */