示例#1
0
void graphite_loop(void *d) {
	struct callmaster *cm = d;

	if (!cm->conf.graphite_interval) {
		ilog(LOG_WARNING,"Graphite send interval was not set. Setting it to 1 second.");
		cm->conf.graphite_interval=1;
	}

	connect_to_graphite_server(&cm->conf.graphite_ep);

	while (!g_shutdown)
		graphite_loop_run(cm,cm->conf.graphite_interval); // time in seconds
}
示例#2
0
文件: main.c 项目: blox-org/rtpengine
static void graphite_loop(void *d) {
	struct callmaster *cm = d;

	if (!graphite_interval) {
		ilog(LOG_WARNING,"Graphite send interval was not set. Setting it to 1 second.");
		graphite_interval=1;
	}

	connect_to_graphite_server(graphite_ip,graphite_port);

	while (!global_shutdown)
		graphite_loop_run(cm,graphite_interval); // time in seconds
}