fixup disk.queue

This commit is contained in:
Doug MacEachern 2008-04-27 00:54:22 +00:00
parent d3c36bb6b7
commit 45c491e859
1 changed files with 2 additions and 1 deletions

View File

@ -1506,7 +1506,7 @@ static int io_kstat_read(sigar_t *sigar,
disk->writes = io->writes; disk->writes = io->writes;
disk->read_bytes = io->nread; disk->read_bytes = io->nread;
disk->write_bytes = io->nwritten; disk->write_bytes = io->nwritten;
disk->queue = io->wcnt; /* XXX ? */ disk->qtime = io->wlentime;
disk->rtime = io->rlentime; disk->rtime = io->rlentime;
disk->wtime = io->wlentime; disk->wtime = io->wlentime;
disk->time = disk->rtime + disk->wtime; disk->time = disk->rtime + disk->wtime;
@ -1643,6 +1643,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name,
avr = 0.0; avr = 0.0;
} }
disk->queue = avw;
disk->service_time = 0.0; disk->service_time = 0.0;
if (tps && (avw != 0.0 || avr != 0.0)) { if (tps && (avw != 0.0 || avr != 0.0)) {