diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-08 15:12:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-08 15:12:12 +0000 |
commit | 5edb234d215611914d8e9e9953fe4f0a4439c383 (patch) | |
tree | 5d527e4af3dc6f2f902ce35fd8f9e3398985085f /src/statistics | |
parent | 02842f3f05e1cd5030bb56541645581a75f7b788 (diff) | |
download | gnunet-5edb234d215611914d8e9e9953fe4f0a4439c383.tar.gz gnunet-5edb234d215611914d8e9e9953fe4f0a4439c383.zip |
add option to disable use of stats entirely
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/statistics_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 305c6f3a5..7bdd6a5c6 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c | |||
@@ -929,6 +929,9 @@ GNUNET_STATISTICS_create (const char *subsystem, | |||
929 | { | 929 | { |
930 | struct GNUNET_STATISTICS_Handle *ret; | 930 | struct GNUNET_STATISTICS_Handle *ret; |
931 | 931 | ||
932 | if (GNUNET_YES == | ||
933 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "statistics", "DISABLE")) | ||
934 | return NULL; | ||
932 | GNUNET_assert (NULL != subsystem); | 935 | GNUNET_assert (NULL != subsystem); |
933 | GNUNET_assert (NULL != cfg); | 936 | GNUNET_assert (NULL != cfg); |
934 | ret = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_Handle)); | 937 | ret = GNUNET_malloc (sizeof (struct GNUNET_STATISTICS_Handle)); |