tools/libxenstat: fix populating vbd.rd_sect

Fixes: 91c3e3dc91 ("tools/xentop: Display '-' when stats are not available.")
Signed-off-by: Richard Kojedzinszky <richard@kojedz.in>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
(cherry picked from commit 89d57f291e)
This commit is contained in:
Richard Kojedzinszky authored and Andrew Cooper committed 2021-07-15 11:59:32 +01:00
1 parent bb9377a205
commit c3cc6e206f
1 file changed
+1 -1
+1 -1
View File
@@ -474,7 +474,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))
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.