Index: pkg/solaris/pkginfo =================================================================== --- pkg/solaris/pkginfo (revision 1) +++ pkg/solaris/pkginfo (working copy) @@ -1,12 +1,12 @@ PKG="NAGplugin" NAME="nagios-plugins" DESC="Nagios network monitoring plugins" -ARCH="powerpc" -VERSION="1.4.5,REV=2006.11.01.21.25" +ARCH="" +VERSION="1.4.5,REV=2006.12.12.09.37" CATEGORY="application" VENDOR="Nagios Plugin Development Team" EMAIL="nagiosplug-devel@lists.sourceforge.net" -PSTAMP="nag20061101212546" +PSTAMP="nag20061212093733" BASEDIR="/" CLASSES="none" Index: plugins/check_swap.c =================================================================== --- plugins/check_swap.c (revision 2) +++ plugins/check_swap.c (working copy) @@ -334,10 +334,10 @@ state_text (result), (100 - percent_used), (int) free_swap_mb, (int) total_swap_mb, status); - puts (perfdata ("swap", (long) free_swap_mb, "MB", - TRUE, (long) max (warn_size_bytes/(1024 * 1024), warn_percent/100.0*total_swap_mb), - TRUE, (long) max (crit_size_bytes/(1024 * 1024), crit_percent/100.0*total_swap_mb), - TRUE, 0, + puts (perfdata ("swap", (long) total_swap_mb-free_swap_mb, "MB", + TRUE, total_swap_mb-((long) max (warn_size_bytes/(1024 * 1024),(warn_percent/100.0*total_swap_mb))), + TRUE, total_swap_mb-((long) max (crit_size_bytes/(1024 * 1024),(crit_percent/100.0*total_swap_mb))), + TRUE, 0, TRUE, (long) total_swap_mb)); return result;