From fa066d9d035326b06fb979d23505dc1e464d23b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20R=C3=BCger?= Date: Wed, 9 Jun 2021 01:00:12 +0200 Subject: [PATCH] src/controller.c: Replace formatter Otherwise the endpoint will output: pools_freed 53d instead of pools_freed 53 --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))); -- 2.39.5