benchmark: add up request size
authorFlorian Dold <florian.dold@gmail.com>
Thu, 2 May 2019 00:23:22 +0000 (02:23 +0200)
committerFlorian Dold <florian.dold@gmail.com>
Thu, 2 May 2019 00:23:22 +0000 (02:23 +0200)
src/curl/curl.c

index 5e1c216abb18c7cb0398eb044b9e07d54d34c843..4bd2a55d094ffce4230e0f4f4f6c7d4002291438 100644 (file)
@@ -536,8 +536,8 @@ GNUNET_CURL_perform2 (struct GNUNET_CURL_Context *ctx,
     urd->count++;
     urd->time = GNUNET_TIME_relative_add (urd->time, total);
     urd->time_max = GNUNET_TIME_relative_max (total, urd->time_max);
-    urd->bytes_sent = bytes_sent;
-    urd->bytes_received = bytes_received;
+    urd->bytes_sent += bytes_sent;
+    urd->bytes_received += bytes_received;
   }
 #endif
     job->jcc (job->jcc_cls,