[Nagiosplug-devel] [ nagiosplug-Patches-900215 ] check_disk send incorrect free_space to check_disk function
SourceForge.net
noreply at sourceforge.net
Thu Feb 19 03:57:21 CET 2004
Patches item #900215, was opened at 2004-02-19 16:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=900215&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Musikhin (mmusikhin)
Assigned to: Nobody/Anonymous (nobody)
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,
----------------------------------------------------------------------
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