[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35177 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35177 - gnunet/src/ats |
Date: |
Sun, 8 Feb 2015 20:53:36 +0100 |
Author: grothoff
Date: 2015-02-08 20:53:36 +0100 (Sun, 08 Feb 2015)
New Revision: 35177
Modified:
gnunet/src/ats/plugin_ats_proportional.c
Log:
-simplify flow
Modified: gnunet/src/ats/plugin_ats_proportional.c
===================================================================
--- gnunet/src/ats/plugin_ats_proportional.c 2015-02-08 19:43:46 UTC (rev
35176)
+++ gnunet/src/ats/plugin_ats_proportional.c 2015-02-08 19:53:36 UTC (rev
35177)
@@ -1025,7 +1025,7 @@
/**
- * Changes the preferences for a peer in the problem
+ * The preferences for a peer in the problem changed.
*
* @param solver the solver handle
* @param peer the peer to change the preference for
@@ -1039,29 +1039,9 @@
double pref_rel)
{
struct GAS_PROPORTIONAL_Handle *s = solver;
- struct ATS_Address *best_address;
- struct ATS_Address *active_address;
- struct AddressWrapper *asi;
- if (0 ==
- s->env->get_connectivity (s->env->cls,
- peer))
- return; /* Peer is not requested */
-
- /* This peer is requested, find best address */
- active_address = get_active_address (s,
- peer);
- best_address = update_active_address (s, peer);
-
- if ( (NULL != best_address) &&
- (active_address == best_address) )
- {
- asi = best_address->solver_information;
- GNUNET_assert (NULL != asi);
-
- /* We sticked to the same address, therefore redistribute */
- distribute_bandwidth_in_network (s, asi->network);
- }
+ distribute_bandwidth_in_network (s,
+ NULL);
}
@@ -1083,7 +1063,7 @@
enum GNUNET_ATS_PreferenceKind
kind,
double score)
{
- /* don't care about feedback */
+ /* Proportional does not care about feedback */
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35177 - gnunet/src/ats,
gnunet <=