From 26e708c1dbb3fa86bb9f03c64e98eee7b275b173 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Jun 2011 13:49:11 +0000 Subject: [PATCH] stats --- src/fs/gnunet-service-fs_pr.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index d8c4340fb..73941ae7b 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c @@ -1308,7 +1308,13 @@ process_local_reply (void *cls, &process_local_reply, pr); if (pr->qe == NULL) - goto check_error_and_continue; + { + GNUNET_STATISTICS_update (GSF_stats, + gettext_noop ("# Datastore lookups concluded (error queueing)"), + 1, + GNUNET_NO); + goto check_error_and_continue; + } return; } prq.type = type; @@ -1321,7 +1327,13 @@ process_local_reply (void *cls, process_reply (&prq, key, pr); pr->local_result = prq.eval; if (prq.eval == GNUNET_BLOCK_EVALUATION_OK_LAST) - goto check_error_and_continue; + { + GNUNET_STATISTICS_update (GSF_stats, + gettext_noop ("# Datastore lookups concluded (found ultimate result)"), + 1, + GNUNET_NO); + goto check_error_and_continue; + } if ( (0 == (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options)) && ( (GNUNET_YES == GSF_test_get_load_too_high_ (0)) || (pr->public_data.results_found > 5 + 2 * pr->public_data.priority) ) ) @@ -1331,7 +1343,7 @@ process_local_reply (void *cls, "Load too high, done with request\n"); #endif GNUNET_STATISTICS_update (GSF_stats, - gettext_noop ("# processing result set cut short due to load"), + gettext_noop ("# Datastore lookups concluded (load too high)"), 1, GNUNET_NO); goto check_error_and_continue; -- 2.25.1