diff options
Diffstat (limited to 'util/shm_side/shm_main.c')
-rw-r--r-- | util/shm_side/shm_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/shm_side/shm_main.c b/util/shm_side/shm_main.c index bba2a8396333..c0757ed7cdef 100644 --- a/util/shm_side/shm_main.c +++ b/util/shm_side/shm_main.c @@ -249,6 +249,13 @@ void shm_main_run(struct worker *worker) shm_stat->mem.msg = (long long)slabhash_get_mem(worker->env.msg_cache); shm_stat->mem.rrset = (long long)slabhash_get_mem(&worker->env.rrset_cache->table); + shm_stat->mem.dnscrypt_shared_secret = 0; +#ifdef USE_DNSCRYPT + if(worker->daemon->dnscenv) { + shm_stat->mem.dnscrypt_shared_secret = (long long)slabhash_get_mem( + worker->daemon->dnscenv->shared_secrets_cache); + } +#endif shm_stat->mem.val = (long long)mod_get_mem(&worker->env, "validator"); shm_stat->mem.iter = (long long)mod_get_mem(&worker->env, |