summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0333c0)
raw | patch | inline | side by side (parent: c0333c0)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Sun, 29 Jun 2003 01:52:31 +0000 (01:52 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Sun, 29 Jun 2003 01:52:31 +0000 (01:52 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@566 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_swap.c | patch | blob | history |
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 63af4ccc9ad3a8865aa064d92543d2d4d53e5042..96eacf359ca79fec66ff517e5e8942c9072dfd2f 100644 (file)
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, fp)) {
if (sscanf (input_buffer, " %s %lu %lu %lu", str, &total, &used, &free) == 4 &&
strstr (str, "Swap")) {
+ total = total / 1048576;
+ used = used / 1048576;
+ free = free / 1048576;
#endif
#ifdef HAVE_SWAP
if (!allswaps && sun) {