summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a735c52)
raw | patch | inline | side by side (parent: a735c52)
author | Francesco Romani <fromani@redhat.com> | |
Fri, 9 Dec 2016 15:54:32 +0000 (16:54 +0100) | ||
committer | Francesco Romani <fromani@redhat.com> | |
Mon, 13 Feb 2017 14:06:13 +0000 (15:06 +0100) |
Signed-off-by: Francesco Romani <fromani@redhat.com>
src/virt.c | patch | blob | history |
diff --git a/src/virt.c b/src/virt.c
index bb5443cbcd8e7507c2b072d202f79947e576b674..ee51bb50a45d7502198ab9bfff437dc13af1beb5 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
if ((binfo->bi.rd_bytes != -1) && (binfo->bi.wr_bytes != -1))
submit_derive2("disk_octets", (derive_t)binfo->bi.rd_bytes,
(derive_t)binfo->bi.wr_bytes, dom, type_instance);
+
+ if ((binfo->rd_total_times != -1) && (binfo->wr_total_times != -1))
+ submit_derive2("disk_time", (derive_t)binfo->rd_total_times,
+ (derive_t)binfo->wr_total_times, dom, type_instance);
}
static int lv_config(const char *key, const char *value) {