diff options
author | Manuel Rüger <manuel@rueg.eu> | 2021-06-09 01:00:12 +0200 |
---|---|---|
committer | Manuel Rüger <manuel@rueg.eu> | 2021-06-09 01:00:57 +0200 |
commit | fa066d9d035326b06fb979d23505dc1e464d23b5 (patch) | |
tree | a00a4acadc837629e2b0ec846a5da2b3b4b84528 /src/controller.c | |
parent | 12dccfc7a0d4cb5126e9522db5a06b4c0f216651 (diff) | |
download | rspamd-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.c | 2 |
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"))); |