From: Tyrel D. <ty...@us...> - 2013-05-02 04:21:09
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gather - Metric Data Gatherer". The branch, master has been updated via 3835ad76a630fef17cc4733360912a74a4af8d02 (commit) from 32b8a6922c71a49676672156a65dc9d1a2bb6e5c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3835ad76a630fef17cc4733360912a74a4af8d02 Author: Tyrel Datwyler <ty...@li...> Date: Wed May 1 21:18:47 2013 -0700 Fixed #2633: local FS metris calculated inconsitently ----------------------------------------------------------------------- Summary of changes: NEWS | 3 +++ plugin/metricLocalFileSystem.c | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index e7540fe..bb94222 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +Bugs fixed: +- #2633 local FS metris calculated inconsitently + Changes in Version 2.2.8 ======================== diff --git a/plugin/metricLocalFileSystem.c b/plugin/metricLocalFileSystem.c index 7bbe243..ed75840 100644 --- a/plugin/metricLocalFileSystem.c +++ b/plugin/metricLocalFileSystem.c @@ -243,7 +243,7 @@ int metricRetrAvSpacePerc( int mid, memset(fs, 0, sizeof (struct statfs) ); if (statfs(ptr_dir, fs) == 0) { if( fs->f_blocks != 0 ) { - size = (float)fs->f_bfree * 100 / + size = (float)fs->f_bavail * 100 / (float)fs->f_blocks; } } hooks/post-receive -- gather - Metric Data Gatherer |