From: Matthias Wachs Date: Wed, 27 Oct 2010 11:31:32 +0000 (+0000) Subject: fixed problems with GNUNET_time_relative X-Git-Tag: initial-import-from-subversion-38251~19922 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=666e63629635d497f469a14a5109575c5e38cf01;p=oweals%2Fgnunet.git fixed problems with GNUNET_time_relative --- diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index ea70b9000..d04e4d206 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c @@ -861,16 +861,14 @@ void GNUNET_DHT_set_malicious_getter (struct GNUNET_DHT_Handle *handle, struct GNUNET_TIME_Relative frequency) { - /* - if (frequency.abs_value > UINT16_MAX) + if (frequency.rel_value > UINT16_MAX) { GNUNET_break (0); return; } send_control_message (handle, - GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_GET, frequency.abs_value, + GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_GET, frequency.rel_value, NULL, NULL); - */ } /** @@ -884,17 +882,15 @@ void GNUNET_DHT_set_malicious_putter (struct GNUNET_DHT_Handle *handle, struct GNUNET_TIME_Relative frequency) { - /* - if (frequency.abs_value > UINT16_MAX) + if (frequency.rel_value > UINT16_MAX) { GNUNET_break (0); return; } send_control_message (handle, - GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_PUT, frequency.abs_value, + GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_PUT, frequency.rel_value, NULL, NULL); - */ }