diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-23 15:00:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-23 15:00:15 +0000 |
commit | e8bd1e4c796bb51ed94817c1b5f69197dbfcfcbc (patch) | |
tree | 00cf6370061f48caeeecc9939785aaecacafa69b /src/fs/gnunet-service-fs.c | |
parent | b990e96d17a5ded09737bda9dab84aad3942898b (diff) | |
download | gnunet-e8bd1e4c796bb51ed94817c1b5f69197dbfcfcbc.tar.gz gnunet-e8bd1e4c796bb51ed94817c1b5f69197dbfcfcbc.zip |
-do even fewer stats by default
Diffstat (limited to 'src/fs/gnunet-service-fs.c')
-rw-r--r-- | src/fs/gnunet-service-fs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index aa8e8de27..a129288ab 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c | |||
@@ -63,6 +63,11 @@ | |||
63 | */ | 63 | */ |
64 | #define COVER_AGE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) | 64 | #define COVER_AGE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) |
65 | 65 | ||
66 | /** | ||
67 | * Collect an instane number of statistics? May cause excessive IPC. | ||
68 | */ | ||
69 | #define INSANE_STATISTICS GNUNET_NO | ||
70 | |||
66 | 71 | ||
67 | /* ****************************** globals ****************************** */ | 72 | /* ****************************** globals ****************************** */ |
68 | 73 | ||
@@ -296,9 +301,11 @@ consider_request_for_forwarding (void *cls, | |||
296 | 301 | ||
297 | if (GNUNET_YES != GSF_pending_request_test_target_ (pr, peer)) | 302 | if (GNUNET_YES != GSF_pending_request_test_target_ (pr, peer)) |
298 | { | 303 | { |
304 | #if INSANE_STATISTICS | ||
299 | GNUNET_STATISTICS_update (GSF_stats, | 305 | GNUNET_STATISTICS_update (GSF_stats, |
300 | gettext_noop ("# Loopback routes suppressed"), 1, | 306 | gettext_noop ("# Loopback routes suppressed"), 1, |
301 | GNUNET_NO); | 307 | GNUNET_NO); |
308 | #endif | ||
302 | return; | 309 | return; |
303 | } | 310 | } |
304 | GSF_plan_add_ (cp, pr); | 311 | GSF_plan_add_ (cp, pr); |