diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-24 13:43:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-24 13:43:55 +0100 |
commit | d86a2e8d9ac7489fe0189104db434e2283559620 (patch) | |
tree | 439caf3f1939a2d702e318fbe424598250c8ef98 /src | |
parent | a1883a5a0aa10216cca58bf7606a9d90d757c115 (diff) | |
download | rspamd-d86a2e8d9ac7489fe0189104db434e2283559620.tar.gz rspamd-d86a2e8d9ac7489fe0189104db434e2283559620.zip |
Fix output of learn counts of statfiles.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstat/backends/mmaped_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c index b5d8ea642..6ee282b78 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); |