diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/165690-check_swap.c.diff | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/165690-check_swap.c.diff')
-rw-r--r-- | web/attachments/165690-check_swap.c.diff | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ | |||
1 | --- check_swap.c.1.54 2006-01-31 12:14:01.000000000 -0500 | ||
2 | +++ check_swap.c 2006-01-31 12:14:46.000000000 -0500 | ||
3 | @@ -292,4 +292,4 @@ | ||
4 | for(i=0;i<nswaps;i++){ | ||
5 | - dsktotal_mb = (float) ent->se_nblks / conv_factor; | ||
6 | - dskused_mb = (float) ent->se_inuse / conv_factor; | ||
7 | + dsktotal_mb = (float) ent[i].se_nblks / conv_factor; | ||
8 | + dskused_mb = (float) ent[i].se_inuse / conv_factor; | ||
9 | dskfree_mb = ( dsktotal_mb - dskused_mb ); | ||