aboutsummaryrefslogtreecommitdiff
path: root/src/ats/plugin_ats_proportional.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-23 17:19:53 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-23 17:19:53 +0100
commit61787bfa37e0ac5998e01d9c4806600033c19c74 (patch)
tree1ceb843f63aa076682ebfa2de2250dc32ee65004 /src/ats/plugin_ats_proportional.c
parent4a3be482811fe8ed1502fea2c12a8449b560a99e (diff)
downloadgnunet-61787bfa37e0ac5998e01d9c4806600033c19c74.tar.gz
gnunet-61787bfa37e0ac5998e01d9c4806600033c19c74.zip
rename fest: use new libgnunetnt instead of old libgnunetats logic for network type classification
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r--src/ats/plugin_ats_proportional.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 08fb7a9a7..b3299b9f0 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -139,7 +139,7 @@ struct Network
139 /** 139 /**
140 * ATS network type 140 * ATS network type
141 */ 141 */
142 enum GNUNET_ATS_Network_Type type; 142 enum GNUNET_NetworkType type;
143 143
144 /** 144 /**
145 * Number of active addresses for this network 145 * Number of active addresses for this network
@@ -429,7 +429,7 @@ distribute_bandwidth_in_network (struct GAS_PROPORTIONAL_Handle *s,
429 { 429 {
430 LOG (GNUNET_ERROR_TYPE_DEBUG, 430 LOG (GNUNET_ERROR_TYPE_DEBUG,
431 "Redistributing bandwidth in network %s with %u active and %u total addresses\n", 431 "Redistributing bandwidth in network %s with %u active and %u total addresses\n",
432 GNUNET_ATS_print_network_type(n->type), 432 GNUNET_NT_to_string(n->type),
433 n->active_addresses, 433 n->active_addresses,
434 n->total_addresses); 434 n->total_addresses);
435 s->env->info_cb (s->env->cls, 435 s->env->info_cb (s->env->cls,
@@ -1181,7 +1181,7 @@ libgnunet_plugin_ats_proportional_init (void *cls)
1181 cur->type = c; 1181 cur->type = c;
1182 cur->total_quota_in = env->in_quota[c]; 1182 cur->total_quota_in = env->in_quota[c];
1183 cur->total_quota_out = env->out_quota[c]; 1183 cur->total_quota_out = env->out_quota[c];
1184 cur->desc = GNUNET_ATS_print_network_type (c); 1184 cur->desc = GNUNET_NT_to_string (c);
1185 GNUNET_asprintf (&cur->stat_total, 1185 GNUNET_asprintf (&cur->stat_total,
1186 "# ATS addresses %s total", 1186 "# ATS addresses %s total",
1187 cur->desc); 1187 cur->desc);