proc_pressure: increment fail_count on read fail (#7547)
Haochen Tong committed
Dec 17, 2019 at 13:07 UTC
1f1a6c309811caabd4a38e26865519ffb5c0505b
1 file changed
+1
collectors/proc.plugin/proc_pressure.c
+1
@@ -97,6 +97,7 @@ int do_proc_pressure(int update_every, usec_t dt) {
97
ff = procfile_readall(ff);
98
resource_info[i].pf = ff;
99
if (unlikely(!ff)) {
100
+ fail_count++;
101
continue;
102
}
103