[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 02/03: fix simplify profiler logic, n_puts_failed
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 02/03: fix simplify profiler logic, n_puts_failed no longer used |
Date: |
Sat, 05 May 2018 23:52:56 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 04a5c505163a84f8a7097dc7b32cf8051c74c214
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat May 5 23:17:03 2018 +0200
fix simplify profiler logic, n_puts_failed no longer used
---
src/dht/gnunet_dht_profiler.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c
index 48377911b..4a703399e 100644
--- a/src/dht/gnunet_dht_profiler.c
+++ b/src/dht/gnunet_dht_profiler.c
@@ -191,11 +191,6 @@ static unsigned int n_puts;
static unsigned int n_puts_ok;
/**
- * Number of DHT PUTs failed
- */
-static unsigned int n_puts_fail;
-
-/**
* Number of DHT GETs made
*/
static unsigned int n_gets;
@@ -464,7 +459,6 @@ summarize ()
{
INFO ("# PUTS made: %u\n", n_puts);
INFO ("# PUTS succeeded: %u\n", n_puts_ok);
- INFO ("# PUTS failed: %u\n", n_puts_fail);
INFO ("# GETS made: %u\n", n_gets);
INFO ("# GETS succeeded: %u\n", n_gets_ok);
INFO ("# GETS failed: %u\n", n_gets_fail);
@@ -785,7 +779,7 @@ dht_disconnect (void *cls, void *op_result)
switch (mode)
{
case MODE_PUT:
- if ((n_puts_ok + n_puts_fail) != n_active)
+ if (n_puts_ok != n_active)
return;
/* Start GETs if all PUTs have been made */
mode = MODE_GET;
--
To stop receiving notification emails like this one, please contact
address@hidden