if (NULL == id)
return;
- if (GNUNET_NO == active)
- return;
-
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Callback for peer `%s' plugin `%s' BW out %llu, BW in %llu \n",
GNUNET_i2s (id),
pc = GNUNET_malloc (sizeof (struct PerformanceClient));
pc->client = client;
pc->flag = flag;
+
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Adding performance client %s PIC\n",
+ (flag == START_FLAG_PERFORMANCE_WITH_PIC) ? "with" : "without");
+
GNUNET_SERVER_notification_context_add (nc, client);
GNUNET_CONTAINER_DLL_insert (pc_head, pc_tail, pc);
return;
}
msg = (const struct FeedbackPreferenceMessage *) message;
- nump = ntohl (msg->num_preferences);
+ nump = ntohl (msg->num_feedback);
if (msize !=
sizeof (struct FeedbackPreferenceMessage) +
nump * sizeof (struct PreferenceInformation))
GAS_addresses_preference_feedback (GSA_addresses,
client,
&msg->peer,
+ GNUNET_TIME_relative_ntoh(msg->scope),
(enum GNUNET_ATS_PreferenceKind)
ntohl (pi[i].preference_kind),
pi[i].preference_value);