diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-03 15:53:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-03 15:53:25 +0100 |
commit | 30ae87c3796d8f227e924598d83717ff3f203303 (patch) | |
tree | 6fb52e5adef392a2cd89be08d381437a8ec3c21e | |
parent | b2efc5f1cf1f7906f634c0f814bd29b4d8f682dd (diff) | |
download | rspamd-30ae87c3796d8f227e924598d83717ff3f203303.tar.gz rspamd-30ae87c3796d8f227e924598d83717ff3f203303.zip |
Fix some stupid mistakes.
-rw-r--r-- | src/libstat/backends/sqlite3_backend.c | 10 | ||||
-rw-r--r-- | src/libstat/stat_process.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c index 5be2b86fa..78cd02ad3 100644 --- a/src/libstat/backends/sqlite3_backend.c +++ b/src/libstat/backends/sqlite3_backend.c @@ -806,7 +806,7 @@ rspamd_sqlite3_get_stat (gpointer runtime, 0, false); rspamd_sqlite3_run_prstmt (bk->sqlite, bk->prstmt, RSPAMD_STAT_BACKEND_NTOKENS, &rev); - ucl_object_insert_key (res, ucl_object_fromint (rev), "total", 0, false); + ucl_object_insert_key (res, ucl_object_fromint (rev), "total", 0, false); ucl_object_insert_key (res, ucl_object_fromint (rev), "used", 0, false); ucl_object_insert_key (res, ucl_object_fromstring (rt->cf->symbol), "symbol", 0, false); @@ -814,12 +814,12 @@ rspamd_sqlite3_get_stat (gpointer runtime, "type", 0, false); rspamd_sqlite3_run_prstmt (bk->sqlite, bk->prstmt, RSPAMD_STAT_BACKEND_NLANGUAGES, &rev); - ucl_object_insert_key (res, ucl_object_fromint (0), - "languages", rev, false); + ucl_object_insert_key (res, ucl_object_fromint (rev), + "languages", 0, false); rspamd_sqlite3_run_prstmt (bk->sqlite, bk->prstmt, RSPAMD_STAT_BACKEND_NUSERS, &rev); - ucl_object_insert_key (res, ucl_object_fromint (0), - "users", rev, false); + ucl_object_insert_key (res, ucl_object_fromint (rev), + "users", 0, false); if (rt->cf->label) { ucl_object_insert_key (res, ucl_object_fromstring (rt->cf->label), diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 630d73a95..505e71ebb 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -824,7 +824,7 @@ rspamd_stat_result_t rspamd_stat_statistics (struct rspamd_task *task, } } - if (*target) { + if (target) { *target = res; } |