From: Vsevolod Stakhov Date: Thu, 11 Sep 2014 11:46:27 +0000 (+0100) Subject: Add alias `--ucl` for `--raw`. X-Git-Tag: 0.7.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5383a5b80fae73cbc082962e4c4123b2b368f1a1;p=thirdparty%2Frspamd.git Add alias `--ucl` for `--raw`. --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 9105c4668b..93358df6d5 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")));