**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "configfile.h"
"Interface",
"IgnoreSelected",
"ReportInactive",
- NULL
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
static int interface_init (void)
{
kstat_t *ksp_chain;
- derive_t val;
numif = 0;
continue;
if (kstat_read (kc, ksp_chain, NULL) == -1)
continue;
- if ((val = get_kstat_value (ksp_chain, "obytes")) == -1LL)
+ if (get_kstat_value (ksp_chain, "obytes") == -1LL)
continue;
ksp[numif++] = ksp_chain;
}
plugin_register_read ("interface", interface_read);
} /* void module_register */
-/*
- * Local variables:
- * c-file-style: "linux"
- * indent-tabs-mode: t
- * c-indent-level: 4
- * c-basic-offset: 4
- * tab-width: 4
- * End:
- */