From: Christophe Kalt Date: Sat, 23 Feb 2008 09:47:20 +0000 (+0100) Subject: swap plugin: Reapply a patch for Solaris. X-Git-Tag: collectd-4.2.5~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc0c95b33d7ddbd02071c5835b25d777812335c6;p=collectd.git swap plugin: Reapply a patch for Solaris. This is a previously applied change that somehow got lost. See http://git.verplant.org/?p=collectd.git;a=commitdiff;h=ee1113650b0b565776fc3d62162d84741e234f05 and http://git.verplant.org/?p=collectd.git;a=commitdiff;h=f68b68c5825efbd23c51531ff4e43c78a3bb2b3b --- diff --git a/src/swap.c b/src/swap.c index 4a414b70..1cf70779 100644 --- a/src/swap.c +++ b/src/swap.c @@ -232,7 +232,7 @@ static int swap_read (void) swap_submit ("used", swap_alloc); swap_submit ("free", swap_avail); - swap_submit ("reserved", swap_resv - swap_alloc); + swap_submit ("reserved", swap_resv); /* #endif HAVE_LIBKSTAT */ #elif defined(VM_SWAPUSAGE)