[Nagiosplug-checkins] nagiosplug/plugins check_swap.c,1.54,1.55
M. Sean Finney
seanius at users.sourceforge.net
Mon Mar 13 10:00:02 CET 2006
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19031
Modified Files:
check_swap.c
Log Message:
fix for (tracker id 1420741)
"check_swap: incorrect totals for multiple partitions (BSD)"
thanks to scott thompson
Index: check_swap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- check_swap.c 9 Nov 2005 16:37:55 -0000 1.54
+++ check_swap.c 13 Mar 2006 17:59:23 -0000 1.55
@@ -290,8 +290,8 @@
}
for(i=0;i<nswaps;i++){
- dsktotal_mb = (float) ent->se_nblks / conv_factor;
- dskused_mb = (float) ent->se_inuse / conv_factor;
+ dsktotal_mb = (float) ent[i].se_nblks / conv_factor;
+ dskused_mb = (float) ent[i].se_inuse / conv_factor;
dskfree_mb = ( dsktotal_mb - dskused_mb );
if(allswaps && dsktotal_mb > 0){
More information about the Commits
mailing list