aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-04 21:01:22 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-04 21:01:22 +0000
commit0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf (patch)
treeac53b9088e75b7041e14e3455698a75da085b3d7 /src/statistics
parentb6d09b511fbd61d3b36fde4c28624bed321bf4a1 (diff)
downloadgnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.tar.gz
gnunet-0e4c7cdccfc4105f9c6e529cfa0e3722104b0ddf.zip
-misc bugfixes, travel hacking
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/gnunet-statistics.c16
-rw-r--r--src/statistics/test_statistics_api_data.conf2
2 files changed, 8 insertions, 10 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index 13468592a..2331aace0 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -277,19 +277,19 @@ main (int argc, char *const *argv)
277 &GNUNET_GETOPT_set_uint, &remote_port}, 277 &GNUNET_GETOPT_set_uint, &remote_port},
278 GNUNET_GETOPT_OPTION_END 278 GNUNET_GETOPT_OPTION_END
279 }; 279 };
280
281 remote_port = 0; 280 remote_port = 0;
282 remote_host = NULL; 281 remote_host = NULL;
283 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) 282 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
284 return 2; 283 return 2;
285 284
286 return (GNUNET_OK == 285 ret = (GNUNET_OK ==
287 GNUNET_PROGRAM_run (argc, argv, "gnunet-statistics [options [value]]", 286 GNUNET_PROGRAM_run (argc, argv, "gnunet-statistics [options [value]]",
288 gettext_noop 287 gettext_noop
289 ("Print statistics about GNUnet operations."), 288 ("Print statistics about GNUnet operations."),
290 options, &run, NULL)) ? ret : 1; 289 options, &run, NULL)) ? ret : 1;
291 290 GNUNET_free_non_null (remote_host);
292 GNUNET_free_non_null(remote_host); 291 GNUNET_free ((void*) argv);
292 return ret;
293} 293}
294 294
295/* end of gnunet-statistics.c */ 295/* end of gnunet-statistics.c */
diff --git a/src/statistics/test_statistics_api_data.conf b/src/statistics/test_statistics_api_data.conf
index c52ff35b3..2099c3bd1 100644
--- a/src/statistics/test_statistics_api_data.conf
+++ b/src/statistics/test_statistics_api_data.conf
@@ -4,13 +4,11 @@ SERVICEHOME = /tmp/test-gnunetd-statistics/
4[statistics] 4[statistics]
5PORT = 22353 5PORT = 22353
6UNIXPATH = /tmp/test-statistics-service-statistics.unix 6UNIXPATH = /tmp/test-statistics-service-statistics.unix
7#DEBUG = YES
8 7
9[arm] 8[arm]
10PORT = 22354 9PORT = 22354
11DEFAULTSERVICES = 10DEFAULTSERVICES =
12UNIXPATH = /tmp/test-statistics-service-arm.unix 11UNIXPATH = /tmp/test-statistics-service-arm.unix
13# DEBUG = YES
14 12
15[fs] 13[fs]
16AUTOSTART = NO 14AUTOSTART = NO