]> source.dussan.org Git - rspamd.git/commitdiff
src/controller.c: Replace formatter 3789/head
authorManuel Rüger <manuel@rueg.eu>
Tue, 8 Jun 2021 23:00:12 +0000 (01:00 +0200)
committerManuel Rüger <manuel@rueg.eu>
Tue, 8 Jun 2021 23:00:57 +0000 (01:00 +0200)
Otherwise the endpoint will output:
pools_freed 53d

instead of

pools_freed 53

src/controller.c

index 185970efa435ed6ebf1fed702322453aa2fc4329..e62e42e00e846bb242d30e53eb7321000be649cf 100644 (file)
@@ -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")));