gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: more accurate calculation


From: gnunet
Subject: [gnunet] branch master updated: more accurate calculation
Date: Mon, 30 Dec 2019 16:17:47 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new b82fedab2 more accurate calculation
b82fedab2 is described below

commit b82fedab2505eccef3161d225473a5c75dd012cd
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Tue Dec 31 00:14:27 2019 +0900

    more accurate calculation
---
 src/transport/test_communicator_basic.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/transport/test_communicator_basic.c 
b/src/transport/test_communicator_basic.c
index e11fb09eb..0d6df751a 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -366,12 +366,8 @@ incoming_message_cb (void *cls,
         GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
                     "Short size packet test done.\n");
         char *goodput = GNUNET_STRINGS_byte_size_fancy ((SHORT_MESSAGE_SIZE
-                                                         * num_received)
-                                                        / (GNUNET_MAX (1,
-                                                                       
duration.
-                                                                       
rel_value_us
-                                                                       / (1000
-                                                                          * 
1000))));
+                                                          * num_received * 
1000 * 1000)
+                                                         / 
duration.rel_value_us);
         GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
                     "%lu/%lu packets in %llu us (%s/s) -- avg latency: %llu 
us\n",
                     (unsigned long) num_received,
@@ -406,12 +402,8 @@ incoming_message_cb (void *cls,
         GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
                     "Long size packet test done.\n");
         char *goodput = GNUNET_STRINGS_byte_size_fancy ((LONG_MESSAGE_SIZE
-                                                         * num_received)
-                                                        / (GNUNET_MAX (1,
-                                                                       
duration.
-                                                                       
rel_value_us
-                                                                       / (1000
-                                                                          * 
1000))));
+                                                          * num_received * 
1000 * 1000)
+                                                         / 
duration.rel_value_us);
 
         GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
                     "%lu/%lu packets in %llu us (%s/s) -- avg latency: %llu 
us\n",

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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