xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* fix vbd rd_sects stat
@ 2021-07-09  8:09 Richard Kojedzinszky
  2021-07-09  8:59 ` Andrew Cooper
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Kojedzinszky @ 2021-07-09  8:09 UTC (permalink / raw)
  To: xen-devel

[-- 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-09 12:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09  8:09 fix vbd rd_sects stat Richard Kojedzinszky
2021-07-09  8:59 ` 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

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).