diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-05-30 15:33:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-05-30 15:33:19 +0000 |
commit | 93002ad128d9dc23f80fc2384e0dd3f033315c14 (patch) | |
tree | 3c164635a06ae666d39acd155d7d947465f95b74 /src/fs/gnunet-service-fs_pr.c | |
parent | 8dc367b10a197123c7148505aa1757055c2e3502 (diff) | |
download | gnunet-93002ad128d9dc23f80fc2384e0dd3f033315c14.tar.gz gnunet-93002ad128d9dc23f80fc2384e0dd3f033315c14.zip |
track performance data
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pr.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c index 1347f7789..d4f14985b 100644 --- a/src/fs/gnunet-service-fs_pr.c +++ b/src/fs/gnunet-service-fs_pr.c | |||
@@ -1146,6 +1146,12 @@ process_local_reply (void *cls, | |||
1146 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1146 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1147 | "No further local responses available.\n"); | 1147 | "No further local responses available.\n"); |
1148 | #endif | 1148 | #endif |
1149 | if ( (pr->public_data.type == GNUNET_BLOCK_TYPE_FS_DBLOCK) || | ||
1150 | (pr->public_data.type == GNUNET_BLOCK_TYPE_FS_IBLOCK) ) | ||
1151 | GNUNET_STATISTICS_update (GSF_stats, | ||
1152 | gettext_noop ("# requested DBLOCK or IBLOCK not found"), | ||
1153 | 1, | ||
1154 | GNUNET_NO); | ||
1149 | goto check_error_and_continue; | 1155 | goto check_error_and_continue; |
1150 | } | 1156 | } |
1151 | #if DEBUG_FS | 1157 | #if DEBUG_FS |
@@ -1174,7 +1180,17 @@ process_local_reply (void *cls, | |||
1174 | anonymity, expiration, uid, | 1180 | anonymity, expiration, uid, |
1175 | &process_local_reply, | 1181 | &process_local_reply, |
1176 | pr)) | 1182 | pr)) |
1177 | return; /* we're done */ | 1183 | { |
1184 | GNUNET_STATISTICS_update (GSF_stats, | ||
1185 | gettext_noop ("# on-demand lookups performed successfully"), | ||
1186 | 1, | ||
1187 | GNUNET_NO); | ||
1188 | return; /* we're done */ | ||
1189 | } | ||
1190 | GNUNET_STATISTICS_update (GSF_stats, | ||
1191 | gettext_noop ("# on-demand lookups failed"), | ||
1192 | 1, | ||
1193 | GNUNET_NO); | ||
1178 | GNUNET_SCHEDULER_cancel (pr->warn_task); | 1194 | GNUNET_SCHEDULER_cancel (pr->warn_task); |
1179 | pr->warn_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, | 1195 | pr->warn_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, |
1180 | &warn_delay_task, | 1196 | &warn_delay_task, |