[Nagiosplug-devel] [ nagiosplug-Patches-900215 ] check_disk send incorrect free_space to check_disk function
SourceForge.net
noreply at sourceforge.net
Tue Mar 2 20:11:48 CET 2004
Patches item #900215, was opened at 2004-02-19 06:49
Message generated for change (Comment added) made by kdebisschop
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=900215&group_id=29880
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Michael Musikhin (mmusikhin)
>Assigned to: Karl DeBisschop (kdebisschop)
Summary: check_disk send incorrect free_space to check_disk function
Initial Comment:
to check_disk function send number of blocks insead
size of free space in kilobytes
--- check_disk.c.orig Thu Aug 28 09:22:01 2003
+++ check_disk.c Thu Feb 19 16:32:23 2004
@@ -186,7 +195,7 @@
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);
+ 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;
asprintf (&perf, "%s %s", perf,
----------------------------------------------------------------------
>Comment By: Karl DeBisschop (kdebisschop)
Date: 2004-03-02 22:56
Message:
Logged In: YES
user_id=1671
patch applied to CVS. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=900215&group_id=29880
More information about the Devel
mailing list