From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/165690-check_swap.c.diff | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 web/attachments/165690-check_swap.c.diff (limited to 'web/attachments/165690-check_swap.c.diff') diff --git a/web/attachments/165690-check_swap.c.diff b/web/attachments/165690-check_swap.c.diff new file mode 100644 index 0000000..38c4396 --- /dev/null +++ b/web/attachments/165690-check_swap.c.diff @@ -0,0 +1,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;ise_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 ); -- cgit v1.2.3-74-g34f1