diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-02-27 14:06:15 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-02-27 14:06:15 +0000 |
| commit | 0ebefdb954b9778f3ac95a614c17f2bb75249bee (patch) | |
| tree | 64a53b22a7312557a5d4b3312271e94efb020e93 /src | |
| parent | 05e0703df5925fd9261efac99334c6891df9fc5a (diff) | |
| download | zabbix-0ebefdb954b9778f3ac95a614c17f2bb75249bee.tar.gz zabbix-0ebefdb954b9778f3ac95a614c17f2bb75249bee.tar.xz zabbix-0ebefdb954b9778f3ac95a614c17f2bb75249bee.zip | |
diskfree[*] to return free disk space in Kb (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@324 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
| -rw-r--r-- | src/zabbix_agent/sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c index 6569dac3..e70de142 100644 --- a/src/zabbix_agent/sysinfo.c +++ b/src/zabbix_agent/sysinfo.c @@ -595,7 +595,7 @@ float DF(const char * mountPoint) return FAIL; } - return s.f_bsize*s.f_bavail; + return s.f_bavail * (s.f_bsize / 1024.0); #else struct statfs s; long blocks_used; |
