aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-16 13:49:11 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-16 13:49:11 +0000
commit26e708c1dbb3fa86bb9f03c64e98eee7b275b173 (patch)
tree2395b4ef2c428e905b5fc2ad6d08175d78aa3a13 /src/fs
parentb463799cce828b69dc55f02b4280b67010dd9f77 (diff)
downloadgnunet-26e708c1dbb3fa86bb9f03c64e98eee7b275b173.tar.gz
gnunet-26e708c1dbb3fa86bb9f03c64e98eee7b275b173.zip
stats
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-service-fs_pr.c18
1 files 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,
1308 &process_local_reply, 1308 &process_local_reply,
1309 pr); 1309 pr);
1310 if (pr->qe == NULL) 1310 if (pr->qe == NULL)
1311 goto check_error_and_continue; 1311 {
1312 GNUNET_STATISTICS_update (GSF_stats,
1313 gettext_noop ("# Datastore lookups concluded (error queueing)"),
1314 1,
1315 GNUNET_NO);
1316 goto check_error_and_continue;
1317 }
1312 return; 1318 return;
1313 } 1319 }
1314 prq.type = type; 1320 prq.type = type;
@@ -1321,7 +1327,13 @@ process_local_reply (void *cls,
1321 process_reply (&prq, key, pr); 1327 process_reply (&prq, key, pr);
1322 pr->local_result = prq.eval; 1328 pr->local_result = prq.eval;
1323 if (prq.eval == GNUNET_BLOCK_EVALUATION_OK_LAST) 1329 if (prq.eval == GNUNET_BLOCK_EVALUATION_OK_LAST)
1324 goto check_error_and_continue; 1330 {
1331 GNUNET_STATISTICS_update (GSF_stats,
1332 gettext_noop ("# Datastore lookups concluded (found ultimate result)"),
1333 1,
1334 GNUNET_NO);
1335 goto check_error_and_continue;
1336 }
1325 if ( (0 == (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options)) && 1337 if ( (0 == (GSF_PRO_PRIORITY_UNLIMITED & pr->public_data.options)) &&
1326 ( (GNUNET_YES == GSF_test_get_load_too_high_ (0)) || 1338 ( (GNUNET_YES == GSF_test_get_load_too_high_ (0)) ||
1327 (pr->public_data.results_found > 5 + 2 * pr->public_data.priority) ) ) 1339 (pr->public_data.results_found > 5 + 2 * pr->public_data.priority) ) )
@@ -1331,7 +1343,7 @@ process_local_reply (void *cls,
1331 "Load too high, done with request\n"); 1343 "Load too high, done with request\n");
1332#endif 1344#endif
1333 GNUNET_STATISTICS_update (GSF_stats, 1345 GNUNET_STATISTICS_update (GSF_stats,
1334 gettext_noop ("# processing result set cut short due to load"), 1346 gettext_noop ("# Datastore lookups concluded (load too high)"),
1335 1, 1347 1,
1336 GNUNET_NO); 1348 GNUNET_NO);
1337 goto check_error_and_continue; 1349 goto check_error_and_continue;