[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14463 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14463 - gnunet/src/datastore |
Date: |
Fri, 18 Feb 2011 19:57:43 +0100 |
Author: grothoff
Date: 2011-02-18 19:57:43 +0100 (Fri, 18 Feb 2011)
New Revision: 14463
Modified:
gnunet/src/datastore/perf_datastore_api.c
Log:
gaugering
Modified: gnunet/src/datastore/perf_datastore_api.c
===================================================================
--- gnunet/src/datastore/perf_datastore_api.c 2011-02-18 18:26:08 UTC (rev
14462)
+++ gnunet/src/datastore/perf_datastore_api.c 2011-02-18 18:57:43 UTC (rev
14463)
@@ -242,6 +242,7 @@
static char data[65536];
int i;
int k;
+ char gstr[128];
ok = (int) crc->phase;
switch (crc->phase)
@@ -293,11 +294,18 @@
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);
break;
case RP_DONE:
+ GNUNET_snprintf (gstr, sizeof (gstr),
+ "PUT operations in %s-datastore_op/s",
+ plugins_name);
+ if (crc->i == ITERATIONS)
+ GAUGER (1000 * stored_ops / (1 +
GNUNET_TIME_absolute_get_duration(start_time).rel_value),
+ gstr);
GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES);
GNUNET_free (crc);
ok = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14463 - gnunet/src/datastore,
gnunet <=