summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2018-02-14 13:15:57 -0600
committerStephen Houston <stephen@localhost.localdomain>2018-02-14 13:15:57 -0600
commit57fa67728f563f8bd60b198cfd1412b5ee160d9e (patch)
tree28c3566ac0caad3bd22bdcd810fd93d85c67baca
parent3a9dba4e790913728f3ccccedf0b6dd5a62a17b1 (diff)
Netstatus: Make sure to store the poller_config in the instance structure.
-rw-r--r--netstatus/src/netstatus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netstatus/src/netstatus.c b/netstatus/src/netstatus.c
index d8c6461..b767909 100644
--- a/netstatus/src/netstatus.c
+++ b/netstatus/src/netstatus.c
@@ -245,6 +245,7 @@ _netstatus_config_updated(Instance *inst)
245 pc->inst = inst; 245 pc->inst = inst;
246 pc->inpercent = 75; 246 pc->inpercent = 75;
247 pc->outpercent = 30; 247 pc->outpercent = 30;
248 inst->cfg->netstatus.poller_config = pc;
248 _netstatus_face_update(pc); 249 _netstatus_face_update(pc);
249 free(pc); 250 free(pc);
250 pc = NULL; 251 pc = NULL;
@@ -276,6 +277,7 @@ _netstatus_config_updated(Instance *inst)
276 pc->outpercent = 0; 277 pc->outpercent = 0;
277 pc->outstring = NULL; 278 pc->outstring = NULL;
278 pc->automax = inst->cfg->netstatus.automax; 279 pc->automax = inst->cfg->netstatus.automax;
280 inst->cfg->netstatus.poller_config = pc;
279 inst->cfg->netstatus.usage_check_poller = 281 inst->cfg->netstatus.usage_check_poller =
280 ecore_poller_add(ECORE_POLLER_CORE, 282 ecore_poller_add(ECORE_POLLER_CORE,
281 inst->cfg->netstatus.poll_interval, 283 inst->cfg->netstatus.poll_interval,