Code

swap plugin: Reapply a patch for Solaris.
authorChristophe Kalt <collectd@klb.taranis.org>
Sat, 23 Feb 2008 09:47:20 +0000 (10:47 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 23 Feb 2008 09:47:20 +0000 (10:47 +0100)
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

src/swap.c

index 4a414b70d21805890fa3abdc38f9cfa059224311..1cf707797f1057b4fb6124c763a46e057b2753ee 100644 (file)
@@ -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)