diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-05 23:17:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-05 23:17:03 +0200 |
commit | 04a5c505163a84f8a7097dc7b32cf8051c74c214 (patch) | |
tree | 2c7a9e77ce3f36a64d32c51cf4ab5f0f2804dcc4 /src/dht | |
parent | b8344df8991db22ea015c274ac2689a3a311c037 (diff) | |
download | gnunet-04a5c505163a84f8a7097dc7b32cf8051c74c214.tar.gz gnunet-04a5c505163a84f8a7097dc7b32cf8051c74c214.zip |
fix simplify profiler logic, n_puts_failed no longer used
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 8 |
1 files changed, 1 insertions, 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; | |||
191 | static unsigned int n_puts_ok; | 191 | static unsigned int n_puts_ok; |
192 | 192 | ||
193 | /** | 193 | /** |
194 | * Number of DHT PUTs failed | ||
195 | */ | ||
196 | static unsigned int n_puts_fail; | ||
197 | |||
198 | /** | ||
199 | * Number of DHT GETs made | 194 | * Number of DHT GETs made |
200 | */ | 195 | */ |
201 | static unsigned int n_gets; | 196 | static unsigned int n_gets; |
@@ -464,7 +459,6 @@ summarize () | |||
464 | { | 459 | { |
465 | INFO ("# PUTS made: %u\n", n_puts); | 460 | INFO ("# PUTS made: %u\n", n_puts); |
466 | INFO ("# PUTS succeeded: %u\n", n_puts_ok); | 461 | INFO ("# PUTS succeeded: %u\n", n_puts_ok); |
467 | INFO ("# PUTS failed: %u\n", n_puts_fail); | ||
468 | INFO ("# GETS made: %u\n", n_gets); | 462 | INFO ("# GETS made: %u\n", n_gets); |
469 | INFO ("# GETS succeeded: %u\n", n_gets_ok); | 463 | INFO ("# GETS succeeded: %u\n", n_gets_ok); |
470 | INFO ("# GETS failed: %u\n", n_gets_fail); | 464 | INFO ("# GETS failed: %u\n", n_gets_fail); |
@@ -785,7 +779,7 @@ dht_disconnect (void *cls, void *op_result) | |||
785 | switch (mode) | 779 | switch (mode) |
786 | { | 780 | { |
787 | case MODE_PUT: | 781 | case MODE_PUT: |
788 | if ((n_puts_ok + n_puts_fail) != n_active) | 782 | if (n_puts_ok != n_active) |
789 | return; | 783 | return; |
790 | /* Start GETs if all PUTs have been made */ | 784 | /* Start GETs if all PUTs have been made */ |
791 | mode = MODE_GET; | 785 | mode = MODE_GET; |