Fix singular/plural when reporting regex client(s)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2021-12-30 23:49:03 +01:00
parent 4347d16081
commit e1887235b2
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 3 additions and 2 deletions

View File

@ -641,9 +641,10 @@ void read_regex_from_database(void)
}
// Print message to FTL's log after reloading regex filters
log_info("Compiled %i allow and %i deny regex for %i clients in %.1f msec",
log_info("Compiled %i allow and %i deny regex for %i client%s in %.1f msec",
num_regex[REGEX_ALLOW], num_regex[REGEX_DENY],
counters->clients, timer_elapsed_msec(REGEX_TIMER));
counters->clients, counters->clients > 1 ? "s" : "",
timer_elapsed_msec(REGEX_TIMER));
}
int regex_test(const bool debug_mode, const bool quiet, const char *domainin, const char *regexin)