Code

disk plugin: The member-names of the `kstat_io_t'-struct were fixed.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 5 Apr 2007 19:03:52 +0000 (21:03 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 5 Apr 2007 19:03:52 +0000 (21:03 +0200)
src/disk.c

index c9d2f36415c0af96a62d1f7da53e60855f6069eb..74071cfda2dd8c5978b57215669e49ca85520719 100644 (file)
@@ -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) */