aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_unreliability.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
commit3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch)
tree61ce41a52cd6e7232cead77818ef265993b2427e /src/transport/test_transport_api_unreliability.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/transport/test_transport_api_unreliability.c')
-rw-r--r--src/transport/test_transport_api_unreliability.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c
index afc26cef7..9bae154de 100644
--- a/src/transport/test_transport_api_unreliability.c
+++ b/src/transport/test_transport_api_unreliability.c
@@ -131,11 +131,11 @@ end ()
131 131
132 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peers\n"); 132 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping peers\n");
133 133
134 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value; 134 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us;
135 FPRINTF (stderr, "\nThroughput was %llu kb/s\n", 135 FPRINTF (stderr, "\nThroughput was %llu kb/s\n",
136 total_bytes * 1000 / 1024 / delta); 136 total_bytes * 1024 / delta);
137 GNUNET_asprintf (&value_name, "unreliable_%s", test_plugin); 137 GNUNET_asprintf (&value_name, "unreliable_%s", test_plugin);
138 GAUGER ("TRANSPORT", value_name, (int) (total_bytes * 1000 / 1024 / delta), 138 GAUGER ("TRANSPORT", value_name, (int) (total_bytes / 1024 / delta),
139 "kb/s"); 139 "kb/s");
140 GNUNET_free (value_name); 140 GNUNET_free (value_name);
141 141