swap plugin: Make SwapCached optional under Linux.
authorFlorian Forster <octo@collectd.org>
Tue, 16 Sep 2014 05:19:09 +0000 (07:19 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 16 Sep 2014 05:22:37 +0000 (07:22 +0200)
commit8b618e1fb63ca5f8c741e95651bc41cf6e454588
tree82e57d052917b265904bdd806543c9e6275cefb9
parent99a97458c2d735c9a91e9ecc45bf33fa338695ad
swap plugin: Make SwapCached optional under Linux.

OpenVZ doesn't provide the line, which caused swap collection to be
skipped entirely on these systems. Instead, "cached" should simply be
ignored, as it is on other systems. Thanks to @zerkms for reporting this
problem!

Fixes: #733
src/swap.c