From: Vsevolod Stakhov Date: Fri, 24 Apr 2015 12:43:55 +0000 (+0100) Subject: Fix output of learn counts of statfiles. X-Git-Tag: 0.9.0~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86a2e8d9ac7489fe0189104db434e2283559620;p=thirdparty%2Frspamd.git Fix output of learn counts of statfiles. --- diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c index b5d8ea6423..6ee282b781 100644 --- a/src/libstat/backends/mmaped_file.c +++ b/src/libstat/backends/mmaped_file.c @@ -1048,13 +1048,13 @@ rspamd_mmaped_file_get_stat (struct rspamd_statfile_runtime *runtime, gpointer ctx) { ucl_object_t *res = NULL; + guint64 rev; rspamd_mmaped_file_t *mf = (rspamd_mmaped_file_t *)runtime; if (mf != NULL) { res = ucl_object_typed_new (UCL_OBJECT); - - ucl_object_insert_key (res, ucl_object_fromint ( - rspamd_mmaped_file_get_revision (mf, NULL, NULL)), "revision", + rspamd_mmaped_file_get_revision (mf, &rev, NULL); + ucl_object_insert_key (res, ucl_object_fromint (rev), "revision", 0, false); ucl_object_insert_key (res, ucl_object_fromint (mf->len), "size", 0, false);