gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15671 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r15671 - gnunet/src/fs
Date: Thu, 16 Jun 2011 15:49:11 +0200

Author: grothoff
Date: 2011-06-16 15:49:11 +0200 (Thu, 16 Jun 2011)
New Revision: 15671

Modified:
   gnunet/src/fs/gnunet-service-fs_pr.c
Log:
stats

Modified: gnunet/src/fs/gnunet-service-fs_pr.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_pr.c        2011-06-16 13:46:20 UTC (rev 
15670)
+++ gnunet/src/fs/gnunet-service-fs_pr.c        2011-06-16 13:49:11 UTC (rev 
15671)
@@ -1308,7 +1308,13 @@
                                         &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_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 @@
                  "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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]