diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-18 23:06:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-18 23:06:09 +0000 |
commit | 7036f99de1a7c041f396fd9e4f4985df5917469e (patch) | |
tree | f366657e4869e0c95d265b05f3a84e406a053559 | |
parent | 4876ba69f5f8eff053a462f39806d066d5d3b3ca (diff) | |
download | gnunet-7036f99de1a7c041f396fd9e4f4985df5917469e.tar.gz gnunet-7036f99de1a7c041f396fd9e4f4985df5917469e.zip |
fix
-rw-r--r-- | src/datastore/perf_datastore_api.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 2a2e628a3..3d59a88d1 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include "gnunet_util_lib.h" | 36 | #include "gnunet_util_lib.h" |
37 | #include "gnunet_protocols.h" | 37 | #include "gnunet_protocols.h" |
38 | #include "gnunet_datastore_service.h" | 38 | #include "gnunet_datastore_service.h" |
39 | #include <gauger.h> | ||
39 | 40 | ||
40 | #define VERBOSE GNUNET_NO | 41 | #define VERBOSE GNUNET_NO |
41 | 42 | ||
@@ -294,7 +295,6 @@ run_continuation (void *cls, | |||
294 | 1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value)); | 295 | 1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value)); |
295 | crc->phase = RP_PUT; | 296 | crc->phase = RP_PUT; |
296 | crc->j = 0; | 297 | crc->j = 0; |
297 | start = GNUNET_TIME_absolute_get (); | ||
298 | GNUNET_SCHEDULER_add_continuation (&run_continuation, | 298 | GNUNET_SCHEDULER_add_continuation (&run_continuation, |
299 | crc, | 299 | crc, |
300 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); | 300 | GNUNET_SCHEDULER_REASON_PREREQ_DONE); |
@@ -304,8 +304,7 @@ run_continuation (void *cls, | |||
304 | "PUT operations in %s-datastore_op/s", | 304 | "PUT operations in %s-datastore_op/s", |
305 | plugin_name); | 305 | plugin_name); |
306 | if (crc->i == ITERATIONS) | 306 | if (crc->i == ITERATIONS) |
307 | GAUGER (1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value), | 307 | GAUGER (gstr, 1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value)); |
308 | gstr); | ||
309 | GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); | 308 | GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); |
310 | GNUNET_free (crc); | 309 | GNUNET_free (crc); |
311 | ok = 0; | 310 | ok = 0; |