fix file_system_usage.free_files
This commit is contained in:
parent
14677ee1b8
commit
f448844f87
|
@ -1420,7 +1420,7 @@ int sigar_file_system_usage_get(sigar_t *sigar,
|
||||||
fsusage->avail = SIGAR_FS_BLOCKS_TO_BYTES(buf, f_bavail);
|
fsusage->avail = SIGAR_FS_BLOCKS_TO_BYTES(buf, f_bavail);
|
||||||
fsusage->used = fsusage->total - fsusage->free;
|
fsusage->used = fsusage->total - fsusage->free;
|
||||||
fsusage->files = buf.f_files;
|
fsusage->files = buf.f_files;
|
||||||
fsusage->free_files = buf.f_files;
|
fsusage->free_files = buf.f_ffree;
|
||||||
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
|
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
|
||||||
|
|
||||||
SIGAR_DISK_STATS_NOTIMPL(fsusage);
|
SIGAR_DISK_STATS_NOTIMPL(fsusage);
|
||||||
|
|
Loading…
Reference in New Issue