projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perl plugin: Work around a redefinition of DEBUG in perl.h.
[collectd.git]
/
src
/
swap.c
diff --git
a/src/swap.c
b/src/swap.c
index
6b0620c
..
3018cb9
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-45,16
+45,6
@@
#undef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))
#undef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))
-static data_source_t data_source[1] =
-{
- {"value", DS_TYPE_GAUGE, 0, 1099511627776.0}
-};
-
-static data_set_t data_set =
-{
- "swap", 1, data_source
-};
-
#if SWAP_HAVE_READ
#if KERNEL_LINUX
/* No global variables */
#if SWAP_HAVE_READ
#if KERNEL_LINUX
/* No global variables */
@@
-314,10
+304,8
@@
static int swap_read (void)
void module_register (void)
{
void module_register (void)
{
- plugin_register_data_set (&data_set);
-
#if SWAP_HAVE_READ
plugin_register_init ("swap", swap_init);
plugin_register_read ("swap", swap_read);
#endif /* SWAP_HAVE_READ */
#if SWAP_HAVE_READ
plugin_register_init ("swap", swap_init);
plugin_register_read ("swap", swap_read);
#endif /* SWAP_HAVE_READ */
-}
+}
/* void module_register */