diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2016-09-08 23:47:55 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2016-09-09 14:17:08 -0700 |
commit | e755f84c193b46876f81fe149a76222a62625466 (patch) | |
tree | 85c7aeec516d78f2d9fd4aee2c00970391b491c0 | |
parent | 1ad1805654961482811f63f355f1aa57cf326863 (diff) |
libvmon: clear {children,threads}_changed when sampling
The samplers may set these, but we need to clear them on every vmon_sample().
-rw-r--r-- | src/libvmon/vmon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libvmon/vmon.c b/src/libvmon/vmon.c index 7d2b2a0..8da8205 100644 --- a/src/libvmon/vmon.c +++ b/src/libvmon/vmon.c @@ -1344,6 +1344,8 @@ static void sample(vmon_t *vmon, vmon_proc_t *proc) { int i, wants, cur; + proc->children_changed = proc->threads_changed = 0; + /* load this process monitors wants, or inherit the default */ wants = proc->wants ? proc->wants : vmon->proc_wants; |