summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54db956)
raw | patch | inline | side by side (parent: 54db956)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 6 Dec 2010 10:21:45 +0000 (11:21 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 6 Dec 2010 10:21:45 +0000 (11:21 +0100) |
src/swap.c | patch | blob | history |
diff --git a/src/swap.c b/src/swap.c
index 03e4eec19e2a07c73d8af316b51382802ddc87e1..a1c78b6ca4a204c70bae8d8855875659bdb3e64a 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
{
int status;
+ if (!report_physical && !report_virtual)
+ {
+ WARNING ("swap plugin: Neither the \"ReportPhysical\" nor the \"ReportVirtual\" option "
+ "has been activated. This plugin will not collect any data.");
+ return (-1);
+ }
+
if (report_physical)
{
status = swap_read_swapctl2 ();