From 45c491e859fe2dc76bad83b6f7244b74229a5ffc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 27 Apr 2008 00:54:22 +0000 Subject: [PATCH] fixup disk.queue --- src/os/solaris/solaris_sigar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 802a8ea6..9eddebef 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -1506,7 +1506,7 @@ static int io_kstat_read(sigar_t *sigar, disk->writes = io->writes; disk->read_bytes = io->nread; disk->write_bytes = io->nwritten; - disk->queue = io->wcnt; /* XXX ? */ + disk->qtime = io->wlentime; disk->rtime = io->rlentime; disk->wtime = io->wlentime; disk->time = disk->rtime + disk->wtime; @@ -1643,6 +1643,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name, avr = 0.0; } + disk->queue = avw; disk->service_time = 0.0; if (tps && (avw != 0.0 || avr != 0.0)) {