summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-06-29 01:52:31 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2003-06-29 01:52:31 +0000
commit12cf5ee9f6204be272aef2b0f58b76fc43d5f394 (patch)
tree5757506e1d2878b3b98bd381007f9aa9954d9a12 /plugins
parentc0333c05e761375c75a0c41e0a1441cc3c5c5fdf (diff)
downloadmonitoring-plugins-12cf5ee9f6204be272aef2b0f58b76fc43d5f394.tar.gz
Corrected reported size for PROC_MEMINFO systems
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@566 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_swap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 63af4ccc..96eacf35 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -80,6 +80,9 @@ main (int argc, char **argv)
80 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) { 80 while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) {
81 if (sscanf (input_buffer, " %s %lu %lu %lu", str, &total, &used, &free) == 4 && 81 if (sscanf (input_buffer, " %s %lu %lu %lu", str, &total, &used, &free) == 4 &&
82 strstr (str, "Swap")) { 82 strstr (str, "Swap")) {
83 total = total / 1048576;
84 used = used / 1048576;
85 free = free / 1048576;
83#endif 86#endif
84#ifdef HAVE_SWAP 87#ifdef HAVE_SWAP
85 if (!allswaps && sun) { 88 if (!allswaps && sun) {