gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16427 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r16427 - gnunet/src/transport
Date: Sun, 7 Aug 2011 16:22:17 +0200

Author: grothoff
Date: 2011-08-07 16:22:17 +0200 (Sun, 07 Aug 2011)
New Revision: 16427

Modified:
   gnunet/src/transport/gnunet-service-transport_neighbours.c
Log:
likely duplication

Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c  2011-08-07 
14:19:27 UTC (rev 16426)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c  2011-08-07 
14:22:17 UTC (rev 16427)
@@ -171,19 +171,6 @@
   struct GNUNET_BANDWIDTH_Tracker in_tracker;
 
   /**
-   * The latency we have seen for this particular address for
-   * this particular peer.  This latency may have been calculated
-   * over multiple transports.  This value reflects how long it took
-   * us to receive a response when SENDING via this particular
-   * transport/neighbour/address combination!
-   *
-   * FIXME: we need to periodically send PINGs to update this
-   * latency (at least more often than the current "huge" (11h?)
-   * update interval).
-   */
-  struct GNUNET_TIME_Relative latency;
-
-  /**
    * How often has the other peer (recently) violated the inbound
    * traffic limit?  Incremented by 10 per violation, decremented by 1
    * per non-violation (for each time interval).
@@ -191,11 +178,6 @@
   unsigned int quota_violation_count;
 
   /**
-   * DV distance to this peer (1 if no DV is used).
-   */
-  uint32_t distance;
-  
-  /**
    * Number of values in 'ats' array.
    */
   unsigned int ats_count;
@@ -493,8 +475,6 @@
       GNUNET_BANDWIDTH_tracker_init (&n->in_tracker,
                                     GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
                                     MAX_BANDWIDTH_CARRY_S);
-      n->latency = GNUNET_TIME_UNIT_FOREVER_REL;
-      n->distance = UINT32_MAX;
       n->timeout_task = GNUNET_SCHEDULER_add_delayed 
(GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT,
                                                      
&neighbour_connect_timeout_task, n);
       GNUNET_assert (GNUNET_OK ==
@@ -737,8 +717,6 @@
       GNUNET_BANDWIDTH_tracker_init (&n->in_tracker,
                                     GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
                                     MAX_BANDWIDTH_CARRY_S);
-      n->latency = GNUNET_TIME_UNIT_FOREVER_REL;
-      n->distance = UINT32_MAX;
       n->timeout_task = GNUNET_SCHEDULER_add_delayed 
(GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT,
                                                      
&neighbour_connect_timeout_task, n);
       GNUNET_assert (GNUNET_OK ==




reply via email to

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