mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-21 14:19:30 -04:00
fix for (tracker id 1420741)
"check_swap: incorrect totals for multiple partitions (BSD)" thanks to scott thompson git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1323 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
5c0aa37260
commit
edf94c7d2a
1 changed files with 2 additions and 2 deletions
|
|
@ -290,8 +290,8 @@ main (int argc, char **argv)
|
|||
}
|
||||
|
||||
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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue