fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 18 Feb 2011 23:06:09 +0000 (23:06 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 18 Feb 2011 23:06:09 +0000 (23:06 +0000)
src/datastore/perf_datastore_api.c

index 2a2e628a3d0d454654b01482871b88ad980ae1ca..3d59a88d13035cdffe1e4809af82380668e6a8e2 100644 (file)
@@ -36,6 +36,7 @@
 #include "gnunet_util_lib.h"
 #include "gnunet_protocols.h"
 #include "gnunet_datastore_service.h"
+#include <gauger.h>
 
 #define VERBOSE GNUNET_NO
 
@@ -294,7 +295,6 @@ run_continuation (void *cls,
                1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value));
       crc->phase = RP_PUT;
       crc->j = 0;
-      start = GNUNET_TIME_absolute_get ();
       GNUNET_SCHEDULER_add_continuation (&run_continuation,
                                         crc,
                                         GNUNET_SCHEDULER_REASON_PREREQ_DONE);
@@ -304,8 +304,7 @@ run_continuation (void *cls,
                       "PUT operations in %s-datastore_op/s",
                       plugin_name);
       if (crc->i == ITERATIONS)
-       GAUGER (1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value),
-               gstr);  
+       GAUGER (gstr, 1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).rel_value));
       GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
       GNUNET_free (crc);
       ok = 0;