diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-02-02 15:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 15:45:11 +0200 |
commit | 381905e2fbd2f432e52544218efd99efe06a76c4 (patch) | |
tree | 0e876378b5723bd8d8818f67d40c2c4c29d7436f /collectors | |
parent | 9f1403de7d3ea2633768d34095afcf880c7c4e2d (diff) |
fix(cgroups.plugin): fix collecting full pressure stall time (#14410)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/cgroups.plugin/sys_fs_cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/cgroups.plugin/sys_fs_cgroup.c b/collectors/cgroups.plugin/sys_fs_cgroup.c index d312f44300..66db0b7281 100644 --- a/collectors/cgroups.plugin/sys_fs_cgroup.c +++ b/collectors/cgroups.plugin/sys_fs_cgroup.c @@ -1456,7 +1456,7 @@ static inline void cgroup2_read_pressure(struct pressure *res) { res->full.share_time.value10 = strtod(procfile_lineword(ff, 1, 2), NULL); res->full.share_time.value60 = strtod(procfile_lineword(ff, 1, 4), NULL); res->full.share_time.value300 = strtod(procfile_lineword(ff, 1, 6), NULL); - res->full.total_time.value_total = str2ull(procfile_lineword(ff, 0, 8)) / 1000; // us->ms + res->full.total_time.value_total = str2ull(procfile_lineword(ff, 1, 8)) / 1000; // us->ms } res->updated = 1; |