aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-set-ibf-profiler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-08 11:30:19 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-08 11:30:19 +0000
commitae53a8d1d043cbd5967fb01316a32685c7a8af9b (patch)
treea8d791aed993ac8691f68ee6152a6ffb14a88ee3 /src/set/gnunet-set-ibf-profiler.c
parente105a542a8ddb22184712bfe565aa734f1d0349d (diff)
downloadgnunet-ae53a8d1d043cbd5967fb01316a32685c7a8af9b.tar.gz
gnunet-ae53a8d1d043cbd5967fb01316a32685c7a8af9b.zip
add logic for strata compression
Diffstat (limited to 'src/set/gnunet-set-ibf-profiler.c')
-rw-r--r--src/set/gnunet-set-ibf-profiler.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/set/gnunet-set-ibf-profiler.c b/src/set/gnunet-set-ibf-profiler.c
index 86004d96e..412a9120e 100644
--- a/src/set/gnunet-set-ibf-profiler.c
+++ b/src/set/gnunet-set-ibf-profiler.c
@@ -102,7 +102,9 @@ remove_iterator (void *cls,
102 102
103 103
104static void 104static void
105run (void *cls, char *const *args, const char *cfgfile, 105run (void *cls,
106 char *const *args,
107 const char *cfgfile,
106 const struct GNUNET_CONFIGURATION_Handle *cfg) 108 const struct GNUNET_CONFIGURATION_Handle *cfg)
107{ 109{
108 struct GNUNET_HashCode id; 110 struct GNUNET_HashCode id;
@@ -171,6 +173,15 @@ run (void *cls, char *const *args, const char *cfgfile,
171 173
172 ibf_a = ibf_create (ibf_size, hash_num); 174 ibf_a = ibf_create (ibf_size, hash_num);
173 ibf_b = ibf_create (ibf_size, hash_num); 175 ibf_b = ibf_create (ibf_size, hash_num);
176 if ( (NULL == ibf_a) ||
177 (NULL == ibf_b) )
178 {
179 /* insufficient memory */
180 GNUNET_break (0);
181 GNUNET_SCHEDULER_shutdown ();
182 return;
183 }
184
174 185
175 printf ("generated sets\n"); 186 printf ("generated sets\n");
176 187
@@ -229,6 +240,7 @@ run (void *cls, char *const *args, const char *cfgfile,
229 asize + bsize); 240 asize + bsize);
230} 241}
231 242
243
232int 244int
233main (int argc, char **argv) 245main (int argc, char **argv)
234{ 246{
@@ -255,4 +267,3 @@ main (int argc, char **argv)
255 options, &run, NULL, GNUNET_YES); 267 options, &run, NULL, GNUNET_YES);
256 return 0; 268 return 0;
257} 269}
258