summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-11 12:35:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-11 12:35:10 +0100
commit6d832691a9d484f0e6ab9d54e88088a6f5c187c3 (patch)
tree3ad2601ea0c034c83908773d939ab30f2db6f642 /src/controller.c
parentc21b3a8e3db223eb215ef17d0ea1762de694ea73 (diff)
downloadrspamd-6d832691a9d484f0e6ab9d54e88088a6f5c187c3.tar.gz
rspamd-6d832691a9d484f0e6ab9d54e88088a6f5c187c3.zip
Add statfile size to the output.
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 1eb8f9522..d27a2d1a1 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -1367,6 +1367,8 @@ rspamd_controller_handle_stat_common (
ucl_object_insert_key (obj, ucl_object_fromint (
rev), "revision", 0, false);
ucl_object_insert_key (obj, ucl_object_fromint (
+ st->size), "size", 0, false);
+ ucl_object_insert_key (obj, ucl_object_fromint (
used), "used", 0, false);
ucl_object_insert_key (obj, ucl_object_fromint (
total), "total", 0, false);