[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen stable-4.15] tools/libxenstat: fix populating vbd.rd_sect
commit 429b0a5c62b9e9faf96456aefb5a176b6eb02921 Author: Richard Kojedzinszky <richard@xxxxxxxxx> AuthorDate: Fri Jul 9 10:06:45 2021 +0200 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Thu Jul 15 11:55:50 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> (cherry picked from commit 89d57f291e37b4769ab26db919eba46548f2e13e) --- 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 c00b26d4d8..1745be4285 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#stable-4.15
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |