summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/proc_net_wireless.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-30 18:47:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-11-30 18:47:00 +0000
commit03bf87dcb06f7021bfb2df2fa8691593c6148aff (patch)
treee16b06711a2ed77cafb4b7754be0220c3d14a9d7 /collectors/proc.plugin/proc_net_wireless.c
parentAdding upstream version 1.36.1. (diff)
downloadnetdata-03bf87dcb06f7021bfb2df2fa8691593c6148aff.tar.xz
netdata-03bf87dcb06f7021bfb2df2fa8691593c6148aff.zip
Adding upstream version 1.37.0.upstream/1.37.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/proc.plugin/proc_net_wireless.c')
-rw-r--r--collectors/proc.plugin/proc_net_wireless.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/collectors/proc.plugin/proc_net_wireless.c b/collectors/proc.plugin/proc_net_wireless.c
index c6ee4ff70..08ab2eada 100644
--- a/collectors/proc.plugin/proc_net_wireless.c
+++ b/collectors/proc.plugin/proc_net_wireless.c
@@ -199,7 +199,7 @@ static void configure_device(int do_status, int do_quality, int do_discarded_pac
}
static void add_labels_to_wireless(struct netwireless *w, RRDSET *st) {
- rrdlabels_add(st->state->chart_labels, "device", w->name, RRDLABEL_SRC_AUTO);
+ rrdlabels_add(st->rrdlabels, "device", w->name, RRDLABEL_SRC_AUTO);
}
int do_proc_net_wireless(int update_every, usec_t dt)
@@ -269,8 +269,6 @@ int do_proc_net_wireless(int update_every, usec_t dt)
add_labels_to_wireless(wireless_dev, wireless_dev->st_status);
}
- else
- rrdset_next(wireless_dev->st_status);
rrddim_set_by_pointer(wireless_dev->st_status, wireless_dev->rd_status,
(collected_number)wireless_dev->status);
@@ -302,8 +300,6 @@ int do_proc_net_wireless(int update_every, usec_t dt)
add_labels_to_wireless(wireless_dev, wireless_dev->st_link);
}
- else
- rrdset_next(wireless_dev->st_link);
if (unlikely(!wireless_dev->st_level)) {
wireless_dev->st_level = rrdset_create_localhost(
@@ -325,8 +321,6 @@ int do_proc_net_wireless(int update_every, usec_t dt)
add_labels_to_wireless(wireless_dev, wireless_dev->st_level);
}
- else
- rrdset_next(wireless_dev->st_level);
if (unlikely(!wireless_dev->st_noise)) {
wireless_dev->st_noise = rrdset_create_localhost(
@@ -348,8 +342,6 @@ int do_proc_net_wireless(int update_every, usec_t dt)
add_labels_to_wireless(wireless_dev, wireless_dev->st_noise);
}
- else
- rrdset_next(wireless_dev->st_noise);
rrddim_set_by_pointer(wireless_dev->st_link, wireless_dev->rd_link, (collected_number)wireless_dev->link);
rrdset_done(wireless_dev->st_link);
@@ -393,8 +385,6 @@ int do_proc_net_wireless(int update_every, usec_t dt)
add_labels_to_wireless(wireless_dev, wireless_dev->st_discarded_packets);
}
- else
- rrdset_next(wireless_dev->st_discarded_packets);
rrddim_set_by_pointer(wireless_dev->st_discarded_packets, wireless_dev->rd_nwid, (collected_number)wireless_dev->nwid);
rrddim_set_by_pointer(wireless_dev->st_discarded_packets, wireless_dev->rd_crypt, (collected_number)wireless_dev->crypt);
@@ -429,11 +419,8 @@ int do_proc_net_wireless(int update_every, usec_t dt)
add_labels_to_wireless(wireless_dev, wireless_dev->st_missed_beacon);
}
- else
- rrdset_next(wireless_dev->st_missed_beacon);
rrddim_set_by_pointer(wireless_dev->st_missed_beacon, wireless_dev->rd_missed_beacon, (collected_number)wireless_dev->missed_beacon);
-
rrdset_done(wireless_dev->st_missed_beacon);
}