]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix output of learn counts of statfiles.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 Apr 2015 12:43:55 +0000 (13:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 Apr 2015 12:43:55 +0000 (13:43 +0100)
src/libstat/backends/mmaped_file.c

index b5d8ea6423ea1ccf30f5ed3c4a137f395dade069..6ee282b78157096039c018b2203f5bd1bc592773 100644 (file)
@@ -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);