summaryrefslogtreecommitdiff
path: root/src/libvmon/vmon.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-09-08 23:47:55 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:17:08 -0700
commite755f84c193b46876f81fe149a76222a62625466 (patch)
tree85c7aeec516d78f2d9fd4aee2c00970391b491c0 /src/libvmon/vmon.c
parent1ad1805654961482811f63f355f1aa57cf326863 (diff)
libvmon: clear {children,threads}_changed when sampling
The samplers may set these, but we need to clear them on every vmon_sample().
Diffstat (limited to 'src/libvmon/vmon.c')
-rw-r--r--src/libvmon/vmon.c2
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;
© All Rights Reserved