diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-28 15:34:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-28 15:34:35 +0100 |
commit | f56a318a49c109d0246d4b5d188cffb50d2b91c8 (patch) | |
tree | 0cf8d0a64ee3ae827e7a817f2e5bcf64e5a91c8c /src/set/gnunet-service-set_union.c | |
parent | 1ba3554564c3d1b1110f5db9c37df498dee0cb9b (diff) | |
download | gnunet-f56a318a49c109d0246d4b5d188cffb50d2b91c8.tar.gz gnunet-f56a318a49c109d0246d4b5d188cffb50d2b91c8.zip |
set: more statistics
Diffstat (limited to 'src/set/gnunet-service-set_union.c')
-rw-r--r-- | src/set/gnunet-service-set_union.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c index 1a421063e..b51939da0 100644 --- a/src/set/gnunet-service-set_union.c +++ b/src/set/gnunet-service-set_union.c | |||
@@ -895,6 +895,10 @@ handle_p2p_strata_estimator (void *cls, | |||
895 | "Sending full set (diff=%d, own set=%u)\n", | 895 | "Sending full set (diff=%d, own set=%u)\n", |
896 | diff, | 896 | diff, |
897 | op->state->initial_size); | 897 | op->state->initial_size); |
898 | GNUNET_STATISTICS_update (_GSS_statistics, | ||
899 | "# of full sends", | ||
900 | 1, | ||
901 | GNUNET_NO); | ||
898 | if (op->state->initial_size <= other_size) | 902 | if (op->state->initial_size <= other_size) |
899 | { | 903 | { |
900 | send_full_set (op); | 904 | send_full_set (op); |
@@ -909,6 +913,10 @@ handle_p2p_strata_estimator (void *cls, | |||
909 | } | 913 | } |
910 | else | 914 | else |
911 | { | 915 | { |
916 | GNUNET_STATISTICS_update (_GSS_statistics, | ||
917 | "# of ibf sends", | ||
918 | 1, | ||
919 | GNUNET_NO); | ||
912 | if (GNUNET_OK != | 920 | if (GNUNET_OK != |
913 | send_ibf (op, | 921 | send_ibf (op, |
914 | get_order_from_difference (diff))) | 922 | get_order_from_difference (diff))) |