Skip to content

Commit

Permalink
tools/libxenstat: fix populating vbd.rd_sect
Browse files Browse the repository at this point in the history
Fixes: 91c3e3d ("tools/xentop: Display '-' when stats are not available.")
Signed-off-by: Richard Kojedzinszky <[email protected]>
Acked-by: Andrew Cooper <[email protected]>
  • Loading branch information
rkojedzinszky authored and andyhhp committed Jul 9, 2021
1 parent ab50c90 commit 89d57f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/libs/stat/xenstat_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 89d57f2

Please sign in to comment.