lq = lq_sum / ((double) lq_num);
DEBUG ("olsrd plugin: Average LQ: %g", lq);
olsrd_submit (/* p.-inst = */ "links", /* type = */ "signal_quality",
lq = lq_sum / ((double) lq_num);
DEBUG ("olsrd plugin: Average LQ: %g", lq);
olsrd_submit (/* p.-inst = */ "links", /* type = */ "signal_quality",
nlq = NAN;
if (nlq_num > 0)
nlq = nlq_sum / ((double) nlq_num);
DEBUG ("olsrd plugin: Average NLQ: %g", nlq);
olsrd_submit (/* p.-inst = */ "links", /* type = */ "signal_quality",
nlq = NAN;
if (nlq_num > 0)
nlq = nlq_sum / ((double) nlq_num);
DEBUG ("olsrd plugin: Average NLQ: %g", nlq);
olsrd_submit (/* p.-inst = */ "links", /* type = */ "signal_quality",
- ssnprintf (type_instance, sizeof (type_instance), "%s-%s-tx",
+ ssnprintf (type_instance, sizeof (type_instance), "%s-%s-lq",
char type_instance[DATA_MAX_NAME_LEN];
memset (type_instance, 0, sizeof (type_instance));
char type_instance[DATA_MAX_NAME_LEN];
memset (type_instance, 0, sizeof (type_instance));
- ssnprintf (type_instance, sizeof (type_instance), "%s-%s-rx",
+ ssnprintf (type_instance, sizeof (type_instance), "%s-%s-lq",
fields[0], fields[1]);
DEBUG ("olsrd plugin: type_instance = %s; lq = %g;", type_instance, lq);
olsrd_submit (/* p.-inst = */ "topology", /* type = */ "signal_quality",
fields[0], fields[1]);
DEBUG ("olsrd plugin: type_instance = %s; lq = %g;", type_instance, lq);
olsrd_submit (/* p.-inst = */ "topology", /* type = */ "signal_quality",
char type_instance[DATA_MAX_NAME_LEN];
memset (type_instance, 0, sizeof (type_instance));
char type_instance[DATA_MAX_NAME_LEN];
memset (type_instance, 0, sizeof (type_instance));
- ssnprintf (type_instance, sizeof (type_instance), "%s-%s-tx",
+ ssnprintf (type_instance, sizeof (type_instance), "%s-%s-nlq",
fields[0], fields[1]);
DEBUG ("olsrd plugin: type_instance = %s; nlq = %g;", type_instance, nlq);
olsrd_submit (/* p.-inst = */ "topology", /* type = */ "signal_quality",
fields[0], fields[1]);
DEBUG ("olsrd plugin: type_instance = %s; nlq = %g;", type_instance, nlq);
olsrd_submit (/* p.-inst = */ "topology", /* type = */ "signal_quality",
while (fgets (buffer, sizeof (buffer), fh) != NULL)
{
buffer_len = strchomp (buffer);
while (fgets (buffer, sizeof (buffer), fh) != NULL)
{
buffer_len = strchomp (buffer);