size = sizeof (block);
block.key = *key;
block.id = my_full_id;
+ GNUNET_STATISTICS_update (stats, "# regex accepting blocks stored",
+ 1, GNUNET_NO);
+ GNUNET_STATISTICS_update (stats, "# regex accepting block bytes stored",
+ sizeof (block), GNUNET_NO);
(void)
GNUNET_DHT_put(dht_handle, key,
dht_replication_level,
GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS), /* FIXME: this should be an option */
app_announce_time,
NULL, NULL);
+ GNUNET_STATISTICS_update (stats, "# regex blocks stored",
+ 1, GNUNET_NO);
+ GNUNET_STATISTICS_update (stats, "# regex block bytes stored",
+ size, GNUNET_NO);
+
GNUNET_free (block);
}
const struct MeshRegexAccept *block = data;
struct MeshRegexSearchContext *ctx = cls;
struct MeshRegexSearchInfo *info = ctx->info;
- struct MeshPeerPath *p;
+// struct MeshPeerPath *p;
struct MeshPeerInfo *peer_info;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got regex results from DHT!\n");