diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 13:19:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 13:19:14 +0000 |
commit | e90c4dce6fc3253c9ca69305fb4efecf8eccc62e (patch) | |
tree | cd2f56b6244436b1b5ca4a651650ffd7327359b3 /src/ats/plugin_ats_proportional.c | |
parent | aa42cd5e2a145b6a66cdc62051b50274109cff42 (diff) | |
download | gnunet-e90c4dce6fc3253c9ca69305fb4efecf8eccc62e.tar.gz gnunet-e90c4dce6fc3253c9ca69305fb4efecf8eccc62e.zip |
-rename for naming consistency
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index ad85f805e..b4cabb067 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c | |||
@@ -1097,53 +1097,61 @@ distribute_bandwidth_in_network (struct GAS_PROPORTIONAL_Handle *s, | |||
1097 | GNUNET_ATS_print_network_type(n->type), | 1097 | GNUNET_ATS_print_network_type(n->type), |
1098 | n->active_addresses, n->total_addresses); | 1098 | n->active_addresses, n->total_addresses); |
1099 | 1099 | ||
1100 | if (NULL != s->env->info_cb) | 1100 | s->env->info_cb (s->env->cls, |
1101 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_START, | 1101 | GAS_OP_SOLVE_START, |
1102 | GAS_STAT_SUCCESS, GAS_INFO_PROP_SINGLE); | 1102 | GAS_STAT_SUCCESS, |
1103 | GAS_INFO_PROP_SINGLE); | ||
1103 | 1104 | ||
1104 | /* Distribute */ | 1105 | /* Distribute */ |
1105 | distribute_bandwidth(s, n); | 1106 | distribute_bandwidth(s, n); |
1106 | 1107 | ||
1107 | if (NULL != s->env->info_cb) | 1108 | s->env->info_cb (s->env->cls, |
1108 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_STOP, | 1109 | GAS_OP_SOLVE_STOP, |
1109 | GAS_STAT_SUCCESS, GAS_INFO_PROP_SINGLE); | 1110 | GAS_STAT_SUCCESS, |
1110 | if (NULL != s->env->info_cb) | 1111 | GAS_INFO_PROP_SINGLE); |
1111 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, | 1112 | s->env->info_cb (s->env->cls, |
1112 | GAS_STAT_SUCCESS, GAS_INFO_PROP_SINGLE); | 1113 | GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, |
1114 | GAS_STAT_SUCCESS, | ||
1115 | GAS_INFO_PROP_SINGLE); | ||
1113 | 1116 | ||
1114 | /* Do propagation */ | 1117 | /* Do propagation */ |
1115 | propagate_bandwidth (s, n); | 1118 | propagate_bandwidth (s, n); |
1116 | 1119 | ||
1117 | if (NULL != s->env->info_cb) | 1120 | s->env->info_cb (s->env->cls, |
1118 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, | 1121 | GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, |
1119 | GAS_STAT_SUCCESS, GAS_INFO_PROP_SINGLE); | 1122 | GAS_STAT_SUCCESS, |
1123 | GAS_INFO_PROP_SINGLE); | ||
1120 | } | 1124 | } |
1121 | else | 1125 | else |
1122 | { | 1126 | { |
1123 | int i; | 1127 | int i; |
1124 | if (NULL != s->env->info_cb) | 1128 | s->env->info_cb (s->env->cls, |
1125 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_START, | 1129 | GAS_OP_SOLVE_START, |
1126 | GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); | 1130 | GAS_STAT_SUCCESS, |
1131 | GAS_INFO_PROP_ALL); | ||
1127 | for (i = 0; i < s->network_count; i++) | 1132 | for (i = 0; i < s->network_count; i++) |
1128 | { | 1133 | { |
1129 | /* Distribute */ | 1134 | /* Distribute */ |
1130 | distribute_bandwidth(s, &s->network_entries[i]); | 1135 | distribute_bandwidth(s, &s->network_entries[i]); |
1131 | } | 1136 | } |
1132 | 1137 | ||
1133 | if (NULL != s->env->info_cb) | 1138 | s->env->info_cb (s->env->cls, |
1134 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_STOP, | 1139 | GAS_OP_SOLVE_STOP, |
1135 | GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); | 1140 | GAS_STAT_SUCCESS, |
1136 | if (NULL != s->env->info_cb) | 1141 | GAS_INFO_PROP_ALL); |
1137 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, | 1142 | s->env->info_cb (s->env->cls, |
1138 | GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); | 1143 | GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, |
1144 | GAS_STAT_SUCCESS, | ||
1145 | GAS_INFO_PROP_ALL); | ||
1139 | for (i = 0; i < s->network_count; i++) | 1146 | for (i = 0; i < s->network_count; i++) |
1140 | { | 1147 | { |
1141 | /* Do propagation */ | 1148 | /* Do propagation */ |
1142 | propagate_bandwidth(s, &s->network_entries[i]); | 1149 | propagate_bandwidth(s, &s->network_entries[i]); |
1143 | } | 1150 | } |
1144 | if (NULL != s->env->info_cb) | 1151 | s->env->info_cb (s->env->cls, |
1145 | s->env->info_cb(s->env->cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, | 1152 | GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, |
1146 | GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); | 1153 | GAS_STAT_SUCCESS, |
1154 | GAS_INFO_PROP_ALL); | ||
1147 | } | 1155 | } |
1148 | } | 1156 | } |
1149 | 1157 | ||