projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dafe210
)
swap plugin: Declare swap_submit_derive() only on Linux.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 7 Feb 2011 13:42:17 +0000
(14:42 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 7 Feb 2011 13:42:17 +0000
(14:42 +0100)
src/swap.c
patch
|
blob
|
history
diff --git
a/src/swap.c
b/src/swap.c
index
a20087d
..
397969e
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-205,6
+205,7
@@
static void swap_submit_gauge (const char *plugin_instance, /* {{{ */
swap_submit (plugin_instance, "swap", type_instance, v);
} /* }}} void swap_submit_gauge */
+#if KERNEL_LINUX
static void swap_submit_derive (const char *plugin_instance, /* {{{ */
const char *type_instance, derive_t value)
{
@@
-214,8
+215,6
@@
static void swap_submit_derive (const char *plugin_instance, /* {{{ */
swap_submit (plugin_instance, "swap_io", type_instance, v);
} /* }}} void swap_submit_derive */
-
-#if KERNEL_LINUX
static int swap_read_separate (void) /* {{{ */
{
FILE *fh;