summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-03 15:49:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-03 15:49:15 +0100
commit2595f57384e62ea3e5b4fd90cc25d816ec435ce8 (patch)
treecdf905179521ead615d7268c508e5828d35197ea /src
parenta829e43304c479e6eceecdf5d5d7322a2b5dc65c (diff)
downloadrspamd-2595f57384e62ea3e5b4fd90cc25d816ec435ce8.tar.gz
rspamd-2595f57384e62ea3e5b4fd90cc25d816ec435ce8.zip
Add extra information about mmaped statistics.
Diffstat (limited to 'src')
-rw-r--r--src/libstat/backends/mmaped_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c
index 341a6140b..e0cb528e5 100644
--- a/src/libstat/backends/mmaped_file.c
+++ b/src/libstat/backends/mmaped_file.c
@@ -1116,6 +1116,12 @@ rspamd_mmaped_file_get_stat (gpointer runtime,
rspamd_mmaped_file_get_used (mf)), "used", 0, false);
ucl_object_insert_key (res, ucl_object_fromstring (mf->cf->symbol),
"symbol", 0, false);
+ ucl_object_insert_key (res, ucl_object_fromstring ("mmap"),
+ "type", 0, false);
+ ucl_object_insert_key (res, ucl_object_fromint (0),
+ "languages", 0, false);
+ ucl_object_insert_key (res, ucl_object_fromint (0),
+ "users", 0, false);
if (mf->cf->label) {
ucl_object_insert_key (res, ucl_object_fromstring (mf->cf->label),