summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc52d7f)
raw | patch | inline | side by side (parent: fc52d7f)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 5 Apr 2007 19:03:52 +0000 (21:03 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Thu, 5 Apr 2007 19:03:52 +0000 (21:03 +0200) |
src/disk.c | patch | blob | history |
diff --git a/src/disk.c b/src/disk.c
index c9d2f36415c0af96a62d1f7da53e60855f6069eb..74071cfda2dd8c5978b57215669e49ca85520719 100644 (file)
--- a/src/disk.c
+++ b/src/disk.c
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) */