diff options
author | Haochen Tong <hexchain@users.noreply.github.com> | 2019-12-17 13:07:23 +0100 |
---|---|---|
committer | Ilya Mashchenko <ilya@netdata.cloud> | 2019-12-17 15:07:23 +0300 |
commit | 1f1a6c309811caabd4a38e26865519ffb5c0505b (patch) | |
tree | b0fa0d237ea38729dcc3ca76e679682d520b96b4 /collectors/proc.plugin | |
parent | 02ff9f2e9ff64e4d2863945481e2fabbb1f47c0b (diff) |
proc_pressure: increment fail_count on read fail (#7547)
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/proc_pressure.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/collectors/proc.plugin/proc_pressure.c b/collectors/proc.plugin/proc_pressure.c index 64974ae2eb..4a40b4aafe 100644 --- a/collectors/proc.plugin/proc_pressure.c +++ b/collectors/proc.plugin/proc_pressure.c @@ -97,6 +97,7 @@ int do_proc_pressure(int update_every, usec_t dt) { ff = procfile_readall(ff); resource_info[i].pf = ff; if (unlikely(!ff)) { + fail_count++; continue; } |