aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-11 12:46:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-09-11 12:46:27 +0100
commit5383a5b80fae73cbc082962e4c4123b2b368f1a1 (patch)
tree0b1fbe37bea04843dd3863b9b24a5c5d7be7e4cf
parent3c4d50a03cafec2c20fd44e3272aee3515e4dc63 (diff)
downloadrspamd-5383a5b80fae73cbc082962e4c4123b2b368f1a1.tar.gz
rspamd-5383a5b80fae73cbc082962e4c4123b2b368f1a1.zip
Add alias `--ucl` for `--raw`.
-rw-r--r--src/client/rspamc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 9105c4668..93358df6d 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -99,6 +99,8 @@ static GOptionEntry entries[] =
NULL },
{ "raw", 0, 0, G_OPTION_ARG_NONE, &raw, "Output raw reply from rspamd",
NULL },
+ { "ucl", 0, 0, G_OPTION_ARG_NONE, &raw, "Output ucl reply from rspamd",
+ NULL },
{ "max-requests", 'n', 0, G_OPTION_ARG_INT, &max_requests,
"Maximum count of parallel requests to rspamd", NULL },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
@@ -687,7 +689,7 @@ rspamc_stat_output (ucl_object_t *obj)
ucl_object_toint (ucl_object_find_key (obj, "pools_allocated")));
rspamd_printf_gstring (out, "Pools freed: %L\n",
ucl_object_toint (ucl_object_find_key (obj, "pools_freed")));
- rspamd_printf_gstring (out, "Bytes allocated: %L\n",
+ rspamd_printf_gstring (out, "Bytes allocated: %HL\n",
ucl_object_toint (ucl_object_find_key (obj, "bytes_allocated")));
rspamd_printf_gstring (out, "Memory chunks allocated: %L\n",
ucl_object_toint (ucl_object_find_key (obj, "chunks_allocated")));