From 2931f54eef37d57edeeb9a798ea0e239f67dc424 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 5 Apr 2007 21:03:52 +0200 Subject: [PATCH] disk plugin: The member-names of the `kstat_io_t'-struct were fixed. --- src/disk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/disk.c b/src/disk.c index c9d2f364..74071cfd 100644 --- a/src/disk.c +++ b/src/disk.c @@ -572,15 +572,15 @@ static int disk_read (void) if (strncmp (ksp[i]->ks_class, "disk", 4) == 0) { - disk_submit (ksp[i]->ks_name, "disk_octets", kio.reads, kio.writes); - disk_submit (ksp[i]->ks_name, "disk_ops", kio.nreads, kio.nwrites); + disk_submit (ksp[i]->ks_name, "disk_octets", kio.nread, kio.nwritten); + disk_submit (ksp[i]->ks_name, "disk_ops", kio.reads, kio.writes); /* FIXME: Convert this to microseconds if necessary */ disk_submit (ksp[i]->ks_name, "disk_time", kio.rtime, kio.wtime); } else if (strncmp (ksp[i]->ks_class, "partition", 9) == 0) { - disk_submit (ksp[i]->ks_name, "disk_octets", kio.reads, kio.writes); - disk_submit (ksp[i]->ks_name, "disk_ops", kio.nreads, kio.nwrites); + disk_submit (ksp[i]->ks_name, "disk_octets", kio.nread, kio.nwritten); + disk_submit (ksp[i]->ks_name, "disk_ops", kio.reads, kio.writes); } } #endif /* defined(HAVE_LIBKSTAT) */ -- 2.30.2