@cryptotaxi247 / netdata-1 / commits / 381905e2f

fix(cgroups.plugin): fix collecting full pressure stall time (#14410)

Ilya Mashchenko committed Feb 2, 2023 at 15:45 UTC 381905e2fbd2f432e52544218efd99efe06a76c4
1 file changed +1 -1
collectors/cgroups.plugin/sys_fs_cgroup.c
+1 -1
@@ -1456,7 +1456,7 @@ static inline void cgroup2_read_pressure(struct pressure *res) {
1456 res->full.share_time.value10 = strtod(procfile_lineword(ff, 1, 2), NULL);
1457 res->full.share_time.value60 = strtod(procfile_lineword(ff, 1, 4), NULL);
1458 res->full.share_time.value300 = strtod(procfile_lineword(ff, 1, 6), NULL);
1459 - res->full.total_time.value_total = str2ull(procfile_lineword(ff, 0, 8)) / 1000; // us->ms
1459 + res->full.total_time.value_total = str2ull(procfile_lineword(ff, 1, 8)) / 1000; // us->ms
1460 }
1461
1462 res->updated = 1;