freebsd disk read/write metrics

This commit is contained in:
Doug MacEachern 2005-02-16 19:27:29 +00:00
parent 2b26862c45
commit aa74f370ad
1 changed files with 5 additions and 0 deletions

View File

@ -998,7 +998,12 @@ int sigar_file_system_usage_get(sigar_t *sigar,
fsusage->free_files = buf.f_files; fsusage->free_files = buf.f_files;
fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage); fsusage->use_percent = sigar_file_system_usage_calc_used(sigar, fsusage);
#ifdef DARWIN
SIGAR_DISK_STATS_NOTIMPL(fsusage); SIGAR_DISK_STATS_NOTIMPL(fsusage);
#else
fsusage->disk_reads = buf.f_syncreads + buf.f_asyncreads;
fsusage->disk_writes = buf.f_syncwrites + buf.f_asyncwrites;
#endif
return SIGAR_OK; return SIGAR_OK;
} }