xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Richard Kojedzinszky <richard@kojedz.in>
To: xen-devel@lists.xenproject.org
Subject: fix vbd rd_sects stat
Date: Fri, 09 Jul 2021 10:09:41 +0200	[thread overview]
Message-ID: <585c34fd96c6e22847333d9d18843c0f@kojedz.in> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-xenstat_linux.c-fix-populating-vbd.rd_sect.patch --]
[-- Type: text/x-diff; name=0001-xenstat_linux.c-fix-populating-vbd.rd_sect.patch, Size: 1130 bytes --]

From d09d27e40cfbdd2dbf5aefaa40a4f46ccb268056 Mon Sep 17 00:00:00 2001
Message-Id: <d09d27e40cfbdd2dbf5aefaa40a4f46ccb268056.1625818025.git.richard@kojedz.in>
From: Richard Kojedzinszky <richard@kojedz.in>
Date: Fri, 9 Jul 2021 10:06:45 +0200
Subject: [PATCH] xenstat_linux.c: fix populating vbd.rd_sect

---
 tools/libs/stat/xenstat_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libs/stat/xenstat_linux.c b/tools/libs/stat/xenstat_linux.c
index 875a0617ad..8939cf3bcd 100644
--- a/tools/libs/stat/xenstat_linux.c
+++ b/tools/libs/stat/xenstat_linux.c
@@ -475,7 +475,7 @@ int xenstat_collect_vbds(xenstat_node * node)
 				(read_attributes_vbd(dp->d_name, "statistics/wr_req", buf, 256)<=0) ||
 				((ret = sscanf(buf, "%llu", &vbd.wr_reqs)) != 1) ||
 				(read_attributes_vbd(dp->d_name, "statistics/rd_sect", buf, 256)<=0) ||
-				((ret = sscanf(buf, "%llu", &vbd.wr_sects)) != 1) ||
+				((ret = sscanf(buf, "%llu", &vbd.rd_sect)) != 1) ||
 				(read_attributes_vbd(dp->d_name, "statistics/wr_sect", buf, 256)<=0) ||
 				((ret = sscanf(buf, "%llu", &vbd.wr_sects)) != 1))
 			{
-- 
2.20.1


             reply	other threads:[~2021-07-09  8:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09  8:09 Richard Kojedzinszky [this message]
2021-07-09  8:59 ` fix vbd rd_sects stat Andrew Cooper
2021-07-09  9:32   ` Richard Kojedzinszky
2021-07-09 11:30     ` Andrew Cooper
2021-07-09 11:37       ` Richard Kojedzinszky
2021-07-09 12:18         ` xenstat-exporter: [Was Re: fix vbd rd_sects stat] Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=585c34fd96c6e22847333d9d18843c0f@kojedz.in \
    --to=richard@kojedz.in \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).