commit 34d47ef: [Minor] Fix printing

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Mar 5 21:07:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-03-05 20:30:41 +0000
URL: https://github.com/rspamd/rspamd/commit/34d47efef8978b93ca87d798b78f84f58254dd91

[Minor] Fix printing

---
 src/controller.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/controller.c b/src/controller.c
index dd11b337c..7531080c2 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -2799,7 +2799,7 @@ rspamd_controller_metrics_add_integer (rspamd_fstring_t **output,
 {
 	rspamd_printf_fstring (output, "# HELP %s %s\n", name, description);
 	rspamd_printf_fstring (output, "# TYPE %s %s\n", name, type);
-	rspamd_printf_fstring (output, "%s %L\n",
+	rspamd_printf_fstring (output, "%s %L\n", name,
 			ucl_object_toint (ucl_object_lookup (top, ucl_key)));
 }
 


More information about the Commits mailing list