commit fa066d9: src/controller.c: Replace formatter

Manuel Rüger manuel at rueg.eu
Wed Jun 9 15:56:04 UTC 2021


Author: Manuel Rüger
Date: 2021-06-09 01:00:12 +0200
URL: https://github.com/rspamd/rspamd/commit/fa066d9d035326b06fb979d23505dc1e464d23b5 (refs/pull/3789/head)

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")));


More information about the Commits mailing list