GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Transmitting value for `%s:%s' (%d): %llu\n",
e->service, e->name,
- e->persistent, e->abs_value);
+ e->persistent, e->value);
#endif
GNUNET_SERVER_notification_context_unicast (nc, client, &m->header, GNUNET_NO);
GNUNET_free (m);
"Received request to update statistic on `%s:%s' (%u) to/by %llu\n",
service, name,
(unsigned int) flags,
- (unsigned long long) abs_value);
+ (unsigned long long) value);
#endif
pos = start;
prev = NULL;
#if DEBUG_STATISTICS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Statistic `%s:%s' updated to value %llu.\n",
- service, name, pos->abs_value);
+ service, name, pos->value);
#endif
if (changed)
notify_change (pos);
#if DEBUG_STATISTICS
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"New statistic on `%s:%s' with value %llu created.\n",
- service, name, pos->abs_value);
+ service, name, pos->value);
#endif
GNUNET_SERVER_receive_done (client, GNUNET_OK);
}
* Process statistics requests.
*
* @param cls closure
- * @param sched scheduler to use
* @param server the initialized server
* @param c configuration to use
*/
static void
run (void *cls,
- struct GNUNET_SCHEDULER_Handle *sched,
struct GNUNET_SERVER_Handle *server,
const struct GNUNET_CONFIGURATION_Handle *c)
{
&handle_client_disconnect,
NULL);
load (server);
- GNUNET_SCHEDULER_add_delayed (sched,
- GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
&shutdown_task,
NULL);
}