]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add alias `--ucl` for `--raw`.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 11 Sep 2014 11:46:27 +0000 (12:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 11 Sep 2014 11:46:27 +0000 (12:46 +0100)
src/client/rspamc.c

index 9105c4668baf2be9bca2d8b19fa7e3561eee37e3..93358df6d5c9e8f188842fdb2a09dda7a29b6b34 100644 (file)
@@ -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")));