summaryrefslogtreecommitdiffstats
path: root/web/attachments/165690-check_swap.c.diff
blob: 38c43961ec7ce09d386c68e09c606239802b9784 (plain)
1
2
3
4
5
6
7
8
9
--- check_swap.c.1.54	2006-01-31 12:14:01.000000000 -0500
+++ check_swap.c	2006-01-31 12:14:46.000000000 -0500
@@ -292,4 +292,4 @@
 	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 );