|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] tools/libxenstat: fix populating vbd.rd_sect
commit 89d57f291e37b4769ab26db919eba46548f2e13e
Author: Richard Kojedzinszky <richard@xxxxxxxxx>
AuthorDate: Fri Jul 9 10:06:45 2021 +0200
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Fri Jul 9 11:12:27 2021 +0100
tools/libxenstat: fix populating vbd.rd_sect
Fixes: 91c3e3dc91d6 ("tools/xentop: Display '-' when stats are not
available.")
Signed-off-by: Richard Kojedzinszky <richard@xxxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
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..ebcd65f24a 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_sects)) !=
1) ||
(read_attributes_vbd(dp->d_name,
"statistics/wr_sect", buf, 256)<=0) ||
((ret = sscanf(buf, "%llu", &vbd.wr_sects)) !=
1))
{
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |