fixed problems with GNUNET_time_relative
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 27 Oct 2010 11:31:32 +0000 (11:31 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 27 Oct 2010 11:31:32 +0000 (11:31 +0000)
src/dht/dht_api.c

index ea70b90005045d95e788842fe126fdc79d79536e..d04e4d20616a2e026725d3ab4d49b0c774b71111 100644 (file)
@@ -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);
-                       */
 }