[Nagiosplug-checkins] CVS: nagiosplug/plugins check_disk.c,1.40,1.41
Karl DeBisschop
kdebisschop at users.sourceforge.net
Tue Mar 2 20:01:03 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16101/plugins
Modified Files:
check_disk.c
Log Message:
check_disk was getting blocks instead of bytes (Michael Musikhin - http://sourceforge.net/tracker/index.php?func=detail&aid=900215&group_id=29880&atid=397599)
Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** check_disk.c 19 Feb 2004 13:23:33 -0000 1.40
--- check_disk.c 3 Mar 2004 03:48:24 -0000 1.41
***************
*** 187,191 ****
if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) {
usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks;
! disk_result = check_disk (usp, fsp.fsu_bavail);
result = max_state (disk_result, result);
psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult;
--- 187,191 ----
if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) {
usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks;
! disk_result = check_disk (usp, fsp.fsu_bavail * fsp.fsu_blocksize);
result = max_state (disk_result, result);
psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult;
More information about the Commits
mailing list