From d8b55e8c52b790f43af58fc5bf8b4fb7ce7246aa Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 7 Apr 2005 01:32:33 +0000 Subject: [PATCH] impl new disk metrics --- src/os/solaris/solaris_sigar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 3b5238a0..e6bb1042 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -1320,9 +1320,9 @@ static int fs_kstat_read(sigar_t *sigar, kstat_read(sigar->kc, ksp, &io); fsusage->disk_reads = io.reads; fsusage->disk_writes = io.writes; - fsusage->disk_read_bytes = SIGAR_FIELD_NOTIMPL; - fsusage->disk_write_bytes = SIGAR_FIELD_NOTIMPL; - fsusage->disk_queue = SIGAR_FIELD_NOTIMPL; + fsusage->disk_read_bytes = io.nread; + fsusage->disk_write_bytes = io.nwritten; + fsusage->disk_queue = io.wcnt; /* XXX ? */ return SIGAR_OK; }