projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1830 from rubenk/move-collectd-header
[collectd.git]
/
src
/
interface.c
diff --git
a/src/interface.c
b/src/interface.c
index
539df58
..
3024313
100644
(file)
--- a/
src/interface.c
+++ b/
src/interface.c
@@
-23,6
+23,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "configfile.h"
#include "common.h"
#include "plugin.h"
#include "configfile.h"
@@
-85,7
+86,6
@@
static const char *config_keys[] =
"Interface",
"IgnoreSelected",
"ReportInactive",
"Interface",
"IgnoreSelected",
"ReportInactive",
- NULL
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
};
static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
@@
-140,7
+140,6
@@
static int interface_config (const char *key, const char *value)
static int interface_init (void)
{
kstat_t *ksp_chain;
static int interface_init (void)
{
kstat_t *ksp_chain;
- derive_t val;
numif = 0;
numif = 0;
@@
-157,7
+156,7
@@
static int interface_init (void)
continue;
if (kstat_read (kc, ksp_chain, NULL) == -1)
continue;
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;
}
continue;
ksp[numif++] = ksp_chain;
}
@@
-422,12
+421,3
@@
void module_register (void)
plugin_register_read ("interface", interface_read);
} /* void module_register */
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:
- */