fix simplify profiler logic, n_puts_failed no longer used
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 May 2018 21:17:03 +0000 (23:17 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 May 2018 21:17:03 +0000 (23:17 +0200)
src/dht/gnunet_dht_profiler.c

index 48377911b4a4afa7bf3bb08c800dc5cef8f214c5..4a703399e112f27cc5e1fd1890d2b5dc8724cfc1 100644 (file)
@@ -190,11 +190,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
  */
@@ -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;