From: Florian Forster Date: Thu, 5 Apr 2007 19:03:52 +0000 (+0200) Subject: disk plugin: The member-names of the `kstat_io_t'-struct were fixed. X-Git-Tag: collectd-4.0.0~102 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2931f54eef37d57edeeb9a798ea0e239f67dc424;p=collectd.git disk plugin: The member-names of the `kstat_io_t'-struct were fixed. --- 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) */