summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/proc_net_ip_vs_stats.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_ip_vs_stats.c
parentAdding upstream version 1.36.1. (diff)
downloadnetdata-3ddbe8d6a93ed16235bde4af7f6195e6f24165e8.tar.xz
netdata-3ddbe8d6a93ed16235bde4af7f6195e6f24165e8.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_ip_vs_stats.c')
-rw-r--r--collectors/proc.plugin/proc_net_ip_vs_stats.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/collectors/proc.plugin/proc_net_ip_vs_stats.c b/collectors/proc.plugin/proc_net_ip_vs_stats.c
index 43dcf2a88..2b9c9332e 100644
--- a/collectors/proc.plugin/proc_net_ip_vs_stats.c
+++ b/collectors/proc.plugin/proc_net_ip_vs_stats.c
@@ -39,9 +39,6 @@ int do_proc_net_ip_vs_stats(int update_every, usec_t dt) {
InBytes = strtoull(procfile_lineword(ff, 2, 3), NULL, 16);
OutBytes = strtoull(procfile_lineword(ff, 2, 4), NULL, 16);
-
- // --------------------------------------------------------------------
-
if(do_sockets) {
static RRDSET *st = NULL;
@@ -63,14 +60,11 @@ int do_proc_net_ip_vs_stats(int update_every, usec_t dt) {
rrddim_add(st, "connections", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
}
- else rrdset_next(st);
rrddim_set(st, "connections", entries);
rrdset_done(st);
}
- // --------------------------------------------------------------------
-
if(do_packets) {
static RRDSET *st = NULL;
if(unlikely(!st)) {
@@ -92,15 +86,12 @@ int do_proc_net_ip_vs_stats(int update_every, usec_t dt) {
rrddim_add(st, "received", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
rrddim_add(st, "sent", NULL, -1, 1, RRD_ALGORITHM_INCREMENTAL);
}
- else rrdset_next(st);
rrddim_set(st, "received", InPackets);
rrddim_set(st, "sent", OutPackets);
rrdset_done(st);
}
- // --------------------------------------------------------------------
-
if(do_bandwidth) {
static RRDSET *st = NULL;
if(unlikely(!st)) {
@@ -122,7 +113,6 @@ int do_proc_net_ip_vs_stats(int update_every, usec_t dt) {
rrddim_add(st, "received", NULL, 8, BITS_IN_A_KILOBIT, RRD_ALGORITHM_INCREMENTAL);
rrddim_add(st, "sent", NULL, -8, BITS_IN_A_KILOBIT, RRD_ALGORITHM_INCREMENTAL);
}
- else rrdset_next(st);
rrddim_set(st, "received", InBytes);
rrddim_set(st, "sent", OutBytes);