[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15658 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15658 - gnunet/src/fs |
Date: |
Thu, 16 Jun 2011 14:02:03 +0200 |
Author: grothoff
Date: 2011-06-16 14:02:03 +0200 (Thu, 16 Jun 2011)
New Revision: 15658
Modified:
gnunet/src/fs/gnunet-service-fs_cp.c
gnunet/src/fs/gnunet-service-fs_pr.c
Log:
fix
Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c 2011-06-16 11:34:54 UTC (rev
15657)
+++ gnunet/src/fs/gnunet-service-fs_cp.c 2011-06-16 12:02:03 UTC (rev
15658)
@@ -1158,6 +1158,10 @@
GNUNET_break_op (0);
return NULL;
}
+ GNUNET_STATISTICS_update (GSF_stats,
+ gettext_noop ("# GET requests received (from other
peers)"),
+ 1,
+ GNUNET_NO);
gm = (const struct GetMessage*) message;
type = ntohl (gm->type);
bm = ntohl (gm->hash_bitmap);
Modified: gnunet/src/fs/gnunet-service-fs_pr.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_pr.c 2011-06-16 11:34:54 UTC (rev
15657)
+++ gnunet/src/fs/gnunet-service-fs_pr.c 2011-06-16 12:02:03 UTC (rev
15658)
@@ -138,6 +138,11 @@
*/
uint32_t mingle;
+ /**
+ * Do we have a first UID yet?
+ */
+ int have_first_uid;
+
};
@@ -969,6 +974,10 @@
struct ProcessReplyClosure prq;
struct PutMigrationContext *pmc;
+ GNUNET_STATISTICS_update (GSF_stats,
+ gettext_noop ("# Replies received from DHT"),
+ 1,
+ GNUNET_NO);
memset (&prq, 0, sizeof (prq));
prq.data = data;
prq.expiration = exp;
@@ -1133,14 +1142,21 @@
pr->qe = NULL;
GNUNET_SCHEDULER_cancel (pr->warn_task);
pr->warn_task = GNUNET_SCHEDULER_NO_TASK;
- if (0 == pr->replies_seen_count)
+ if (GNUNET_NO == pr->have_first_uid)
{
pr->first_uid = uid;
+ pr->have_first_uid = GNUNET_YES;
}
else
{
if (uid == pr->first_uid)
- key = NULL; /* all replies seen! */
+ {
+ GNUNET_STATISTICS_update (GSF_stats,
+ gettext_noop ("# Datastore lookups
concluded"),
+ 1,
+ GNUNET_NO);
+ key = NULL; /* all replies seen! */
+ }
}
if (NULL == key)
{
@@ -1342,6 +1358,10 @@
pr->warn_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES,
&warn_delay_task,
pr);
+ GNUNET_STATISTICS_update (GSF_stats,
+ gettext_noop ("# Datastore lookups initiated"),
+ 1,
+ GNUNET_NO);
pr->qe = GNUNET_DATASTORE_get_key (GSF_dsh,
pr->local_result_offset++,
&pr->public_data.query,
@@ -1418,6 +1438,10 @@
GNUNET_break_op (0);
return GNUNET_SYSERR;
}
+ GNUNET_STATISTICS_update (GSF_stats,
+ gettext_noop ("# GAP PUT messages received"),
+ 1,
+ GNUNET_NO);
/* now, lookup 'query' */
prq.data = (const void*) &put[1];
if (NULL != cp)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15658 - gnunet/src/fs,
gnunet <=