gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6269 - GNUnet/src/applications/fs/gap


From: gnunet
Subject: [GNUnet-SVN] r6269 - GNUnet/src/applications/fs/gap
Date: Tue, 12 Feb 2008 20:58:27 -0700 (MST)

Author: grothoff
Date: 2008-02-12 20:58:27 -0700 (Tue, 12 Feb 2008)
New Revision: 6269

Modified:
   GNUnet/src/applications/fs/gap/fs.c
   GNUnet/src/applications/fs/gap/gap.c
   GNUnet/src/applications/fs/gap/plan.c
   GNUnet/src/applications/fs/gap/querymanager.c
Log:
removing debug stuff

Modified: GNUnet/src/applications/fs/gap/fs.c
===================================================================
--- GNUnet/src/applications/fs/gap/fs.c 2008-02-13 03:42:31 UTC (rev 6268)
+++ GNUnet/src/applications/fs/gap/fs.c 2008-02-13 03:58:27 UTC (rev 6269)
@@ -523,8 +523,6 @@
   enum GNUNET_FS_RoutingPolicy policy;
   double preference;
 
-  fprintf(stderr,
-         "R");
   if (test_load_too_high ())
     {
 #if DEBUG_GAP
@@ -644,9 +642,6 @@
   unsigned long long expiration;
   double preference;
 
-  if (sender != NULL)
-    fprintf(stderr,
-           "C");
   size = ntohs (pmsg->size);
   if (size < sizeof (P2P_gap_reply_MESSAGE))
     {

Modified: GNUnet/src/applications/fs/gap/gap.c
===================================================================
--- GNUnet/src/applications/fs/gap/gap.c        2008-02-13 03:42:31 UTC (rev 
6268)
+++ GNUnet/src/applications/fs/gap/gap.c        2008-02-13 03:58:27 UTC (rev 
6269)
@@ -233,10 +233,13 @@
          if ( (rl->bloomfilter_size == filter_size) &&
               (rl->bloomfilter_mutator == filter_mutator) )
            {
-             /* update ttl / BF */
-             GNUNET_bloomfilter_or(rl->bloomfilter,
-                                   bloomfilter_data,
-                                   filter_size);
+             if (rl->bloomfilter_size > 0)
+               {
+                 /* update ttl / BF */
+                 GNUNET_bloomfilter_or(rl->bloomfilter,
+                                       bloomfilter_data,
+                                       filter_size);
+               }
              GNUNET_FS_PT_change_rc (peer, -1);
              GNUNET_mutex_unlock (GNUNET_FS_lock);
              return;
@@ -379,8 +382,6 @@
           msg->reserved = 0;
           msg->expiration = GNUNET_htonll (expiration);
           memcpy (&msg[1], data, size);
-         fprintf(stderr,
-                 "F");
           coreAPI->unicast (&target,
                             &msg->header,
                             BASE_REPLY_PRIORITY * (1 + rl->value),

Modified: GNUnet/src/applications/fs/gap/plan.c
===================================================================
--- GNUnet/src/applications/fs/gap/plan.c       2008-02-13 03:42:31 UTC (rev 
6268)
+++ GNUnet/src/applications/fs/gap/plan.c       2008-02-13 03:58:27 UTC (rev 
6269)
@@ -661,7 +661,6 @@
   req->last_prio_used = prio;
   req->last_ttl_used = ttl;
   req->remaining_value -= prio;
-  fprintf(stderr, "!");
   return size;
 }
 

Modified: GNUnet/src/applications/fs/gap/querymanager.c
===================================================================
--- GNUnet/src/applications/fs/gap/querymanager.c       2008-02-13 03:42:31 UTC 
(rev 6268)
+++ GNUnet/src/applications/fs/gap/querymanager.c       2008-02-13 03:58:27 UTC 
(rev 6269)
@@ -38,7 +38,7 @@
 #include "pid_table.h"
 #include "shared.h"
 
-#define CHECK_REPEAT_FREQUENCY (1 * GNUNET_CRON_SECONDS)
+#define CHECK_REPEAT_FREQUENCY (2 * GNUNET_CRON_SECONDS)
 
 /**
  * Linked list with information for each client.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]