interfaces fifo is incremental and is about FIFO buffer errors
Costa Tsaousis (ktsaou) committed
Dec 25, 2015 at 21:45 UTC
4b64834e222cf30e16d4aaf94d234bca749b4996
1 file changed
+4
-4
src/proc_net_dev.c
+4
-4
@@ -108,7 +108,7 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
108
109
// for absolute values, we need to switch the setting to 'yes'
110
// to allow it refresh from now on
111
- if(ddo_fifo == CONFIG_ONDEMAND_ONDEMAND) config_set(var_name, "fifo", "yes");
111
+ // if(ddo_fifo == CONFIG_ONDEMAND_ONDEMAND) config_set(var_name, "fifo", "yes");
112
}
113
114
RRDSET *st;
@@ -191,11 +191,11 @@ int do_proc_net_dev(int update_every, unsigned long long dt) {
191
if(ddo_fifo) {
192
st = rrdset_find_bytype("net_fifo", iface);
193
if(!st) {
194
- st = rrdset_create("net_fifo", iface, NULL, iface, "Interface Queue", "packets", 1100, update_every, RRDSET_TYPE_LINE);
194
+ st = rrdset_create("net_fifo", iface, NULL, iface, "Interface FIFO Buffer Errors", "errors", 1100, update_every, RRDSET_TYPE_LINE);
195
st->isdetail = 1;
196
197
- rrddim_add(st, "receive", NULL, 1, 1, RRDDIM_ABSOLUTE);
198
- rrddim_add(st, "transmit", NULL, -1, 1, RRDDIM_ABSOLUTE);
197
+ rrddim_add(st, "receive", NULL, 1, 1, RRDDIM_INCREMENTAL);
198
+ rrddim_add(st, "transmit", NULL, -1, 1, RRDDIM_INCREMENTAL);
199
}
200
else rrdset_next(st);
201