projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab50c90
)
tools/libxenstat: fix populating vbd.rd_sect
author
Richard Kojedzinszky
<richard@kojedz.in>
Fri, 9 Jul 2021 08:06:45 +0000
(10:06 +0200)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Fri, 9 Jul 2021 10:12:27 +0000
(11:12 +0100)
Fixes: 91c3e3dc91d6 ("tools/xentop: Display '-' when stats are not available.")
Signed-off-by: Richard Kojedzinszky <richard@kojedz.in>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/stat/xenstat_linux.c
patch
|
blob
|
history
diff --git
a/tools/libs/stat/xenstat_linux.c
b/tools/libs/stat/xenstat_linux.c
index 875a0617ade8b616515e505097ff27609fe3e9a7..ebcd65f24a450b5b6c051f33488b050a6322c5a2 100644
(file)
--- 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))
{