From: Manuel RĂ¼ger Date: Tue, 8 Jun 2021 23:00:12 +0000 (+0200) Subject: src/controller.c: Replace formatter X-Git-Tag: 3.0~329^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3789%2Fhead;p=rspamd.git src/controller.c: Replace formatter Otherwise the endpoint will output: pools_freed 53d instead of pools_freed 53 --- diff --git a/src/controller.c b/src/controller.c index 185970efa..e62e42e00 100644 --- a/src/controller.c +++ b/src/controller.c @@ -2764,7 +2764,7 @@ rspamd_controller_metrics_fin_task (void *ud) { ucl_object_toint (ucl_object_lookup (top, "control_connections"))); rspamd_printf_fstring (&output, "pools_allocated %L\n", ucl_object_toint (ucl_object_lookup (top, "pools_allocated"))); - rspamd_printf_fstring (&output, "pools_freed %" PRId64 "\n", + rspamd_printf_fstring (&output, "pools_freed %L\n", ucl_object_toint (ucl_object_lookup (top, "pools_freed"))); rspamd_printf_fstring (&output, "bytes_allocated %L\n", ucl_object_toint (ucl_object_lookup (top, "bytes_allocated")));