*/
#include "platform.h"
#include "gnunet_util_lib.h"
+#include "gnunet_statistics_service.h"
#include "rps.h"
#include "gnunet-service-rps_sampler.h"
// TODO add other reasons to wait here
}
- s_elem->last_client_request = GNUNET_TIME_absolute_get ();
+ GNUNET_STATISTICS_set (stats,
+ "# client sampler element input",
+ s_elem->num_peers,
+ GNUNET_NO);
+ GNUNET_STATISTICS_set (stats,
+ "# client sampler element change",
+ s_elem->num_change,
+ GNUNET_NO);
+
RPS_sampler_elem_reinit (s_elem);
GNUNET_CONTAINER_DLL_remove (gpc->req_handle->gpc_head,
};
/* Followed by num_peers * GNUNET_PeerIdentity */
+GNUNET_NETWORK_STRUCT_END
/***********************************************************************
* Defines from old gnunet-service-rps_peers.h
const struct GNUNET_PeerIdentity *peer);
-GNUNET_NETWORK_STRUCT_END
+/**
+ * Handle to the statistics service.
+ */
+extern struct GNUNET_STATISTICS_Handle *stats;
+