From c283a6775a6438f7da5c3173b3993f78d1369a7d Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 10 Dec 2015 14:17:12 +0000 Subject: statistics --- src/set/gnunet-service-set_union.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index 78975749a..52e1d0b4c 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c @@ -1506,6 +1506,10 @@ union_evaluate (struct Operation *op, op->state->phase = PHASE_EXPECT_SE; LOG (GNUNET_ERROR_TYPE_DEBUG, "Initiating union operation evaluation\n"); + GNUNET_STATISTICS_update (_GSS_statistics, + "# of total union operations", + 1, + GNUNET_NO); GNUNET_STATISTICS_update (_GSS_statistics, "# of initiated union operations", 1, @@ -1551,6 +1555,10 @@ union_accept (struct Operation *op) "# of accepted union operations", 1, GNUNET_NO); + GNUNET_STATISTICS_update (_GSS_statistics, + "# of total union operations", + 1, + GNUNET_NO); op->state = GNUNET_new (struct OperationState); op->state->se = strata_estimator_dup (op->spec->set->state->se); -- cgit v1.2.3