Przeglądaj źródła

Show learned counter.

Issue: #383
tags/1.0.3
Vsevolod Stakhov 8 lat temu
rodzic
commit
4bf41bd872
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      src/controller.c

+ 3
- 0
src/controller.c Wyświetl plik

@@ -1783,6 +1783,9 @@ rspamd_controller_handle_stat_common (

ucl_object_insert_key (top, ucl_object_fromint (
stat->messages_scanned), "scanned", 0, false);
ucl_object_insert_key (top, ucl_object_fromint (
stat->messages_learned), "learned", 0, false);

if (stat->messages_scanned > 0) {
sub = ucl_object_typed_new (UCL_OBJECT);
for (i = METRIC_ACTION_REJECT; i <= METRIC_ACTION_NOACTION; i++) {

Ładowanie…
Anuluj
Zapisz