projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
solaris-fixes branch: Complain in the syslog if `swapctl' failes.
[collectd.git]
/
src
/
swap.c
diff --git
a/src/swap.c
b/src/swap.c
index
86df6f7
..
1595cde
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-149,7
+149,11
@@
static void swap_read (void)
struct anoninfo ai;
if (swapctl (SC_AINFO, &ai) == -1)
+ {
+ syslog (LOG_ERR, "swap plugin: swapctl failed: %s",
+ strerror (errno));
return;
+ }
/*
* Calculations from: