impl new disk metrics

This commit is contained in:
Doug MacEachern 2005-04-07 01:32:33 +00:00
parent aa3a6a201d
commit d8b55e8c52
1 changed files with 3 additions and 3 deletions

View File

@ -1320,9 +1320,9 @@ static int fs_kstat_read(sigar_t *sigar,
kstat_read(sigar->kc, ksp, &io); kstat_read(sigar->kc, ksp, &io);
fsusage->disk_reads = io.reads; fsusage->disk_reads = io.reads;
fsusage->disk_writes = io.writes; fsusage->disk_writes = io.writes;
fsusage->disk_read_bytes = SIGAR_FIELD_NOTIMPL; fsusage->disk_read_bytes = io.nread;
fsusage->disk_write_bytes = SIGAR_FIELD_NOTIMPL; fsusage->disk_write_bytes = io.nwritten;
fsusage->disk_queue = SIGAR_FIELD_NOTIMPL; fsusage->disk_queue = io.wcnt; /* XXX ? */
return SIGAR_OK; return SIGAR_OK;
} }