aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-statistics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r--src/statistics/gnunet-statistics.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index 2bf5959e3..f21da6059 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -180,7 +180,6 @@ shutdown_task (void *cls)
180 * Main task that does the actual work. 180 * Main task that does the actual work.
181 * 181 *
182 * @param cls closure with our configuration 182 * @param cls closure with our configuration
183 * @param tc schedueler context
184 */ 183 */
185static void 184static void
186main_task (void *cls) 185main_task (void *cls)
@@ -221,7 +220,8 @@ main_task (void *cls)
221 if (GNUNET_NO == watch) 220 if (GNUNET_NO == watch)
222 { 221 {
223 if (NULL == 222 if (NULL ==
224 GNUNET_STATISTICS_get (h, subsystem, name, GET_TIMEOUT, &cleanup, 223 GNUNET_STATISTICS_get (h, subsystem, name, GET_TIMEOUT,
224 &cleanup,
225 &printer, h)) 225 &printer, h))
226 cleanup (h, GNUNET_SYSERR); 226 cleanup (h, GNUNET_SYSERR);
227 } 227 }
@@ -235,15 +235,15 @@ main_task (void *cls)
235 ret = 1; 235 ret = 1;
236 return; 236 return;
237 } 237 }
238 if (GNUNET_OK != GNUNET_STATISTICS_watch (h, subsystem, name, &printer, h)) 238 if (GNUNET_OK != GNUNET_STATISTICS_watch (h, subsystem, name,
239 &printer, h))
239 { 240 {
240 fprintf (stderr, _("Failed to initialize watch routine\n")); 241 fprintf (stderr, _("Failed to initialize watch routine\n"));
241 GNUNET_SCHEDULER_add_now (&shutdown_task, h); 242 GNUNET_SCHEDULER_add_now (&shutdown_task, h);
242 return; 243 return;
243 } 244 }
244 } 245 }
245 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, 246 GNUNET_SCHEDULER_add_shutdown (&shutdown_task, h);
246 &shutdown_task, h);
247} 247}
248 248
249 249