From: Bart Polot Date: Fri, 1 Mar 2013 02:20:04 +0000 (+0000) Subject: - fix in monitoring, documentation, style X-Git-Tag: initial-import-from-subversion-38251~9807 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51580550ab479d272beea3e67790e882182ffd01;p=oweals%2Fgnunet.git - fix in monitoring, documentation, style --- diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 4872b58a5..3fa5de71a 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c @@ -1644,17 +1644,18 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer, GNUNET_TIME_absolute_ntoh (put->expiration_time), ntohl (put->hop_count), bf, &put->key, putlen, pp, payload, payload_size); + /* notify monitoring clients */ + GDS_CLIENTS_process_put (options, + ntohl (put->type), + ntohl (put->hop_count), + ntohl (put->desired_replication_level), + putlen, pp, + GNUNET_TIME_absolute_ntoh (put->expiration_time), + &put->key, + payload, + payload_size); } GNUNET_CONTAINER_bloomfilter_free (bf); - GDS_CLIENTS_process_put (options, - ntohl (put->type), - ntohl (put->hop_count), - ntohl (put->desired_replication_level), - putlen, put_path, - GNUNET_TIME_absolute_ntoh (put->expiration_time), - &put->key, - payload, - payload_size); return GNUNET_YES; } @@ -1869,9 +1870,6 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer, GNUNET_free (tmp); } - - - /* FIXME Path */ GDS_CLIENTS_process_get (options, type, ntohl(get->hop_count), diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c index 2d0d77876..efcdf0e14 100644 --- a/src/dht/gnunet-service-dht_routing.c +++ b/src/dht/gnunet-service-dht_routing.c @@ -264,7 +264,7 @@ process (void *cls, const struct GNUNET_HashCode * key, void *value) * @param key key for the content * @param put_path_length number of entries in put_path * @param put_path peers the original PUT traversed (if tracked) - * @param get_path_length number of entries in put_path + * @param get_path_length number of entries in get_path * @param get_path peers this reply has traversed so far (if tracked) * @param data payload of the reply * @param data_size number of bytes in data