[Nagiosplug-checkins] CVS: nagiosplug/plugins check_swap.c,1.11,1.12
Ton Voon
tonvoon at users.sourceforge.net
Sat Jun 28 18:53:07 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv25757
Modified Files:
check_swap.c
Log Message:
Corrected reported size for PROC_MEMINFO systems
Index: check_swap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** check_swap.c 27 Jun 2003 14:43:01 -0000 1.11
--- check_swap.c 29 Jun 2003 01:52:31 -0000 1.12
***************
*** 81,84 ****
--- 81,87 ----
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
More information about the Commits
mailing list