diff options
Diffstat (limited to 'src/set/gnunet-service-set.c')
-rw-r--r-- | src/set/gnunet-service-set.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c index 0557bc1f2..cc172974e 100644 --- a/src/set/gnunet-service-set.c +++ b/src/set/gnunet-service-set.c | |||
@@ -25,6 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | #include "gnunet-service-set.h" | 26 | #include "gnunet-service-set.h" |
27 | #include "gnunet-service-set_protocol.h" | 27 | #include "gnunet-service-set_protocol.h" |
28 | #include "gnunet_statistics_service.h" | ||
28 | 29 | ||
29 | /** | 30 | /** |
30 | * How long do we hold on to an incoming channel if there is | 31 | * How long do we hold on to an incoming channel if there is |
@@ -137,6 +138,11 @@ static uint32_t lazy_copy_cookie = 1; | |||
137 | */ | 138 | */ |
138 | static uint32_t suggest_id = 1; | 139 | static uint32_t suggest_id = 1; |
139 | 140 | ||
141 | /** | ||
142 | * Statistics handle. | ||
143 | */ | ||
144 | struct GNUNET_STATISTICS_Handle *_GSS_statistics; | ||
145 | |||
140 | 146 | ||
141 | /** | 147 | /** |
142 | * Get set that is owned by the given client, if any. | 148 | * Get set that is owned by the given client, if any. |
@@ -1716,6 +1722,7 @@ shutdown_task (void *cls, | |||
1716 | GNUNET_CADET_disconnect (cadet); | 1722 | GNUNET_CADET_disconnect (cadet); |
1717 | cadet = NULL; | 1723 | cadet = NULL; |
1718 | } | 1724 | } |
1725 | GNUNET_STATISTICS_destroy (_GSS_statistics, GNUNET_YES); | ||
1719 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1726 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1720 | "handled shutdown request\n"); | 1727 | "handled shutdown request\n"); |
1721 | } | 1728 | } |
@@ -1987,6 +1994,7 @@ run (void *cls, | |||
1987 | &handle_client_disconnect, NULL); | 1994 | &handle_client_disconnect, NULL); |
1988 | GNUNET_SERVER_add_handlers (server, | 1995 | GNUNET_SERVER_add_handlers (server, |
1989 | server_handlers); | 1996 | server_handlers); |
1997 | _GSS_statistics = GNUNET_STATISTICS_create ("set", cfg); | ||
1990 | cadet = GNUNET_CADET_connect (cfg, NULL, | 1998 | cadet = GNUNET_CADET_connect (cfg, NULL, |
1991 | &channel_new_cb, | 1999 | &channel_new_cb, |
1992 | &channel_end_cb, | 2000 | &channel_end_cb, |