From e755f84c193b46876f81fe149a76222a62625466 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 8 Sep 2016 23:47:55 -0700 Subject: libvmon: clear {children,threads}_changed when sampling The samplers may set these, but we need to clear them on every vmon_sample(). --- src/libvmon/vmon.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3