projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c00718f
)
Merge pull request #97 from tokkee/sh/swap
author
Florian Forster
<github@nospam.verplant.org>
Mon, 2 Jul 2012 20:00:34 +0000
(13:00 -0700)
committer
Florian Forster
<github@nospam.verplant.org>
Mon, 2 Jul 2012 20:00:34 +0000
(13:00 -0700)
swap plugin: Don't report an error if there is no swap space on Linux.
src/swap.c
patch
|
blob
|
history
diff --git
a/src/swap.c
b/src/swap.c
index
629d1a1
..
30daa4b
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-239,7
+239,7
@@
static int swap_read (void) /* {{{ */
sstrerror (errno, errbuf, sizeof (errbuf)));
}
- if ((swap_
total == 0LL) || ((swap_free + swap_cached) > swap_total)
)
+ if ((swap_
free + swap_cached) > swap_total
)
return (-1);
swap_used = swap_total - (swap_free + swap_cached);