summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorManuel Rüger <manuel@rueg.eu>2021-06-09 01:00:12 +0200
committerManuel Rüger <manuel@rueg.eu>2021-06-09 01:00:57 +0200
commitfa066d9d035326b06fb979d23505dc1e464d23b5 (patch)
treea00a4acadc837629e2b0ec846a5da2b3b4b84528 /src/controller.c
parent12dccfc7a0d4cb5126e9522db5a06b4c0f216651 (diff)
downloadrspamd-fa066d9d035326b06fb979d23505dc1e464d23b5.tar.gz
rspamd-fa066d9d035326b06fb979d23505dc1e464d23b5.zip
src/controller.c: Replace formatter
Otherwise the endpoint will output: pools_freed 53d instead of pools_freed 53
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
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")));